Category "c++sharp"

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

PGP BouncyCastle + Kleopatra Decryption: Unknown Packet Type: 20

I am attempting to decrypt a file using BouncyCastle in C# that has been encrypted with RSA via Kleopatra. Unfortunately, I am receiving an error that states "

My Xamarin app keeps crashing due to Databinding(Basic Databinding)

I was trying to use Databinding in my Xamarin app. After implementing, just like the many instructions suggest, it just always crashes while loading the app. Wi

C# How to delete certain part of string from text not to delete the rest text [duplicate]

Like in the title, how to delete a certain part of text without deleting the whole text. The example how it should work. "Some text I put in t

BlockSize must be 128 in this implementation

I'm using the following code to decrypt some strings I reicive but I'm getting the following error: BlockSize must be 128 in this implementation. I would like t