Category "c++sharp"

How to Authenticate two subdomain by one login in IdentityServer?

I have an IDP server implemented by Duende IdentityServer assume which is hosted on idp.com and there are two separate ReactJS applications hosted on app.mysite

How to make jump system in unity?

Here is my code for moving around in Uunity, however I can't seem to make the character jump. The moving camera and collect item on collision has also been impl

Performance wise, arer both theses lines of code the same in csharp for Unity?

Performance wise, arer both theses lines of code the same ? pictureExample.sprite = Resources.Load<Sprite>("my_png"); pictureExample.sprite = Resources.Lo

*Edit* Service Fabric - Can't Debug With .NET 6

Now that I have figured out what is going on (can't debug services using .NET 6 in Service Fabric), does anyone have an idea of how to get this to work? Some se

Can C#(.NET 6) call managed/unmanaged C++ dll?

I'm attempting to call a c++ DLL(WinSDK: 10.0.18362.0, Platform Toolset: VS 2017 v141) from C#(the target framework is .NET 6.0) on ARM, and I compiled them for

Creating public PASETO token in ASP NET Core

I'm using Paseto.Core Nuget from https://github.com/daviddesmet/paseto-dotnet, and I'm trying to create v4 public PASETO token with this. My code: public async

IBasicVideoEffect with NV12 Subtype

I'm writing UWP app that give's user an opportunity to add video effect's on video stream receiving by some camera. I used C# MediaFrameReader to send SoftwareB

How to use linq2db to insert sql geography?

It is simple really: var a = SqlGeography.STGeomFromText(new SqlChars("POINT(-122.34900 47.65100)"), 4326);` and then insert await _geoDb.Table.Value(x => x

Why an installed app is not listed by Ms Graph API?

I am trying to upgrade an app which belongs to a chat. If the app is not installed, below code successfully install it: await graph.Chats["19:[email protected]"]

Using C# LINQ with MongoDB Find

I am only about 3 days into using MongoDb and C# driver so be gentle. ;-) I have a MongoDB query working with AsQueryable. I would like to use the collection.Fi

Average of List<objects> in c#

I have a list of object. class Student { int age; int height; int weight; int marksInMath; int marksInScience; . . . . . . int marksIn...; } List<Stude

How can I convert an empty string value to a nullable date value?

When I use Postman to test my API with a PUT request, I get this error: "type": "https://tools.ietf.org/html/rfc7231#section-6.5.1", "title": "One or more valid

why am I getting this 'the referenced script on this Behavior is missing!' error in Unity?

I'm trying to make a simple FPS movement script in Unity. I made a player called 'player' with a capsule collider, a rigidbody, and a camera. Everything worked

Matic/Polygon transactions stopped working without code change using Nethereum

Recently(Maybe correlated to EIP-1559 upgrade) matic transactions that would previously work have stopped working for me, even basic ones like transferring nati

Importing a C# .NET 6.0 Core Dll into a C++ without TLB file

I have quite a number of C# Dlls that were made in .NET 4.6 Framework and need to get upgraded to .NET Core 6 - that part is relatively straightforward. However

.NET 6 obfuscation

I'm trying to obfuscate an .exe file obtained after compiling my .NET 6 project with the "Produce a single file" option, the problem is that no obfuscator works

How to solve the Galaxy numeric keyboard nightmare

I've been struggling with the Samsung Galaxy numeric keyboard decimal separator nightmare. I have an Entry on which I must only accept numeric values (including

Failed to setup dotNet certificate on mac by all means

I am trying to run the Dotnet version 6 app on macOS latest version I searched everywhere, it was always required to install the certificate although I had a va

grab UserSecrets from a NuGet package

I've written a C# class library for my company to use internally, and it uses DotNet UserSecrets to allow each developer to have their own credentials set witho

Unusual Target Invocation Error in Unit Tests

I'm trying to run a group of 12 unit tests. When I run the entire group, one test passes and the rest fail with the same error: Could not find default endpoint