Category "c++sharp"

Variable changes absurdly like 3 to 51? [duplicate]

I have been trying to solve a codewar question but when I use char to int .I get absurd results. like I enter 3 as base and 3 as power but res

Need Help in Rigidbody based FPS Controller in Unity

I am Learning unity and trying to create a fps game, but while making its controller i am facing a bit problem, like i want to move player ,, but using rigidbo

Unity with azure speech sdk

When i am using the azure speech sdk on unity, when i test it on the computer it works fine, i can speak, it recognizes and responds in speech all normal. When

c# StringExtension with Method Space

I try to create a string extension with the method Space(int) in it. If I have an instance of a string, then its no problem. But without I have no Idea. The cal

How to send form-encoded List<long> from SwaggerUI?

I'm getting 400 Bad Request on sending List<long> from SwaggerUI to .net application Swagger Response : {"statusCode":400,"message":["The value '"1","2",

C# Console-Application with no console but winforms

We have an application that is a WinForms-Application. It accepts startup parameters and can perform certain jobs with no UI by using the command line. Now, we

TrayIcon with WinUI 3

I am trying to make a program that runs in the background, and I want to place a Tray Icon in the Tray Icon Section of Windows. I didn't find a solution to do t

Why when i'm using Show method on another form the window form stuck and won't open

Where i'm opening the other form using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Data.SqlClient; us

TabControl overlays Minimize, Maximize and Close button of window

If I create for example 12 Tabs at start of my app the tabpages are overlapping the Close, Minimize and Maximize buttons, I have used the official sample from M

Validate with Bouncy Castle ECDsaSigner

I am trying validate the message digest hash using eCDsaSigner with R and S but VerifySignature returns false . Is it possible to get more information as to why

Why is my script for a sprite applying to a tilemap? (Unity2D)

I'm trying to make a simple top-down 2d movement demo as a personal project, and I've run into a very weird roadblock. I was using code from this website to mov

Win SSPI Negotiate auth when running a service and client both locally

At my job I faced an issue while running a WebService locally and doing authentication into it also locally. WebService uses Waffle with SSPI through JNA and ex

asp.net 6 EF using MySql Database not working

I am trying to connect my Web API build in asp.net 6 with MySql and I am having a lot of trouble My Service looks like this builder.Services.AddDbContext<Tic

Arbitrary Value JsonDiffPatch.net diff function output

I am trying to find the changed values on website. For that I have written a iterator which will hit the website and get the html output. I have saved that html

Build Project with MSBuild programmatically - NuGetSdkResolver or InvalidProjectFileException error

I want to build a tool which is capable of building C# projects. For that I did the following thing: var buildOutput = new List<string>();

How to get the file_id of a wopi host integration?

I've deployed a Wopi client as mentioned in the documentation and now i'm trying to deploy a wopi host, but i'm new to .net enviroment and i don't know how to g

How to Encrypt Windows Identity value?

I'm using x = System.Security.Principal.WindowsIdentity.GetCurrent().User.Value; which outputs the users windows identity. Here is an example of what the outp

Constructor car calculator program

I am trying to write a program with the instructions below. The program does work currently, but it does not fully meet the specs. I think I'm very close, but I

Blazor TypeError

Blazor application throws error whenever i try to call methods in api. I've tried different httprequest methods but nothing changed so far, still struggling to

ASP.NET and Spring - Singleton or Scoped/Prototype

Im really confused, Daily I work with java and spring and in Spring-community it is almost obvious that Repositorium/DAO and Services are Singletons (which is d