Category "c++sharp"

Get list of all possible Paths with a start node and many end nodes C#

I am working on finding/listing critical path and alternate paths of a road navigation data in a C# winforms app. This is the first time I work on a navigation

With ASP.NET Identity is it possible to add and delete claims dynamically during an existing session?

I'm trying to add and delete claims (roles in this case) dynamically after a successful login using Identity 2 in Asp.Net 4.5.2. My application has an authentic

Serialize response from post async .NET 6

I am trying to modify the response when serialized. TimeJoined is returned as a string in format hh:mm (GMT +_) and I want to modify as a 24h format, in the ins

How to exclusively set the value of a DataGridViewCheckBoxCell?

I have a List<Car> objects that have a bool property named Marked. I want to check / uncheck the Cell corresponding to this property, in a way that only o

grpc and polly - .net core 6

I'm trying to use Polly as retry policy handler for grpc in my .net core 6 project. I noticed that the retryFunc is never invoked. I started from this project g

Efficient queue clearing in C#

I'm currently dealing with a queue that has a couple thousand entries in it. To save on RAM usage I'm currently using the TrimExcess() method built in to the qu

How to write an asynchronous Policy handler, injecting a scoped service

I'm trying to write a custom policy for an ASP.NET Core 3.1 web application, using a custom Identity storage provider. I've tried to wrap my head around the fa

Entity framework core TPH query across different subtype properties

I'm using EF core TPH inheritance to model some data and I'm trying to write a query that will query across different subtypes. My current attempt at writing a

How to parsegju,jk

I have to parse a TSV file which has the following structure: [Secti "1 2" "2 3"his?

Autmapper map collections of different types to collection of another type with nesting

I am currently struggling with automapper.10.1.1 config. I have following types: class Response { List<Assignment> Assignments { get; } List<Pr

Best practicies global result - error handling in Asp.Net core 3 and Angular 9

According to Microsoft's recommendation, throwing and catching should not be used for the normal logic of the program. Minimize exceptions As part of a ASP.Net

How make pages in Winforms?

I would like to make pages for UserControl but I don't know how I can do this. How can I implement this as in the picture in WinForms? I would like to display a

How to display the route using GMap in C#?

My main problem is that it doesn't display the line between the 2 markers when I click on the display button.It should draw my route between the first pin and t

Generating aes cbc key from password and iv in dart

anyone havean idea how can i generate a key for aes encryption in dart from iv and password? like this code written in C#: var spec = new Rfc2898DeriveBytes(En

Handle MouseMove, MouseDown, MouseUp Events in a ListView to drag a borderless Form

I'm using MouseMove, MouseUp, MouseDown events to move a borderless form (as found here as an example). It works great, but for a ListView, it only works if I c

Can't access Hangfire Dashboard using Authorization boilerplate code

I can access the Hangfire dashboard from my local environment, but can't access it from a deployed server. Initial searches showed that I needed to enable autho

Is it possible to detect what type of Default Asset is selected in Unity?

i'm trying to make a custom editor and i was wondering if there's any way to detect what exact type is an asset when GetType() returns UnityEditor.DefaultAsset.

Asynchronously Streaming Video with .Net Core API from Azure Blob Storage

I have found a bunch of examples that use objects not available to me within my application and don't seem to match up to my version of .NET Core web API. In es

How to override List property in EF Core 6?

I have a problem, in database I have an object of class Catalog with 3 elements in CatalogUsers. I want to replace that list with 2 element list being the orgin

How to fix "Segmentation fault (core dumped)" when creating new dotnet project?

I am following https://dotnet.microsoft.com/learn/dotnet/hello-world-tutorial/create When I try to create a project, I get the following: oskar@oskarslaptop:~/P