Category "c++sharp"

How to change game object Material in Unity?

How can I do if cube1 collision cube2, cube1 material = yesil ? I'm new in Unity and English speaking sorry about that :)

Getting Label's Text From Static Method

I'm trying to take label1.Text how can i do it from static method (Windows Form) public static IntPtr hookProc(int code, IntPtr wParam, IntPtr lParam) {

How to apply Client Side validation using Fluent Validation for .Net core

.Net Core 3.0 MVC view. Needs to apply - Client Side validation for below model. Tried as follow: Model:Person public class Person { public int Id {

ASP .NET CORE simple parameter validation

Is it possible to do some validation using attributes on simple parameters, like: [HttpGet("test/{type}")] public ActionResult GetSomeData([Range(0,2)]byte typ

Unity3D Player walking through and on the Stone

Hello guys my Player is walking on the Stone and through the Stone. The Player called Champ has a Box Collider and the Stone has a Mesh Collider. Also the Playe

"Command Failed" error on Open Document method on C#

I'm getting error like "Command Failed" on Microsoft.Office.Interop.Word Open Document method(on word.Documents.Open code line) when sending much more parameter

.Net MAUI - AppShell navigation & dependency injection

I'm playing around with .Net Maui, AppShell and dependency injection. I try to call a page with a constructor which takes the ViewModel of this page as paramete

No Sufficient Data Content of User When Calling Microsoft.Graph Compared to Microsoft.Azure.ActiveDirectory.GraphClient

I want to change my code from Microsoft.Azure.ActiveDirectory.GraphClient to Microsoft.Graph on the same registered App. On some data structure(e.g. Group, Comp

The property 'PropertyName' could not be mapped, because it is of type 'List<decimal>'

I got this problem when I try to create the database with EntityFramework Core: The property 'Rating.RatingScores' could not be mapped, because it is of typ

Microsoft.Extensions.Hosting.HostFactoryResolver+HostingListener+StopTheHostException

I'm using Asp.Net Core Web Api 6 I'm facing an error when migrating my DbContext and when updating the database The Error [17:07:29 INF] Application Is Starting

Shake an object back and forth with easing at the end?

I almost want a jarring animation, such that it shakes back and forth rapidly for a second, and then slows back down, easing back into its normal position. Ther

Color RGB in BackColor's Form

I'd like to put the RBG color In the property of the form, not like code, but when I try I got this error. "0, 161, 230 no es un valor válido para Int32

In the CodePen markdown editor, can I set a C# Code Block?

When writing a post in CodePen, I can set a code block with JavaScript, this way: javascript console.log ("Hello, World"); How can I set the code for C#? I

How to perform a LEFT JOIN on the same table using Linq?

Consider a table where rows may be linked to each other. We need to select the rows that meet a certain requirement, OR where its linked row meets that requirem

Cannot get installed apps for user | Microsoft Graph API

My application should retrieve all installed apps for every user in the AAD. According to this docs the application permissions are: TeamsAppInstallation.ReadFo

ASP.NET Core IHostedService manual start/stop/pause(?)

I would like to implement a recurring (timed) IHostedService instance in ASPNET Core that can be stopped and started on demand. My understanding is that IHoste

ASP.NET Core IHostedService manual start/stop/pause(?)

I would like to implement a recurring (timed) IHostedService instance in ASPNET Core that can be stopped and started on demand. My understanding is that IHoste

ASP.NET Core IHostedService manual start/stop/pause(?)

I would like to implement a recurring (timed) IHostedService instance in ASPNET Core that can be stopped and started on demand. My understanding is that IHoste

Google API (Gmail) failing with failed precondition 400

I am trying to use the google APIs to read emails and I'm repeatedly failing to get good results. It is supposed to be a server->server account that runs per

Check Keyboard Input Winforms

I was wondering if instead of doing this protected override void OnKeyDown(KeyEventArgs e) { if (e.KeyCode == Keys.A) Console.WriteLine("The A key