Category "c++sharp"

multidimensional list remove duplicates only for that level

I am trying to build a treeview of crates from a program called Serato, how they build their crates in their program is by the files in a folder, however the is

C# Send a toast notification from a Windows Service : UnauthorizedAccessException

I try to send a Toast Notification in a Windows Service, but I have this exeption : System.UnauthorizedAccessException: Accès refusé. (Exception

Render CSV example for swashbuckle

I have an API that can return an csv or json, deppending on the Accept header mimetype. I've decorated the method with [Produces("application/json","text/csv")]

In XML documenttion, how do I reference another class that has the same name in the same namespace?

I have several C# packages that are closely related to each other. Each one of these has its own IServiceCollectionsExtensions static class living in the Micros

Calling mutliple bool routines in ASP.NET and C#

I have mutliple bool user defined routines that calls a stored procedure from SQL server. The stored procedures are working fine but the problem is I want to hi

NavMeshAgent in unity doesn't bake (Doesn't turn blue)

I made a few surfaces and a few agents, then when I wanted to make a couple more the old navs and new ones just stopped working it says it only works if you pla

Read raw file contents in private repo in C#

I want to read the contents of a private GitHub repo file and declare the value in a variable in a C# Visual Studio .NET Application. What's easiest the way of

Minimal API Registering Dependencies

I am trying to register dependencies but one thing that is strange is when using specific handlers. For example, take a simple scenario like: using Microsoft.As

Attempting to 'permanetly' save two user inputs into two seperate arrays, and display the array data in a listbox on a different form

Apologies I am a newbie, ill try to explain as best as I can. Im creating a game for a university assignment. My game is a maths game that asks the user maths q

how do we interpret => something => something2 => something3 in C#

I am reading a book called functional programming in C# by Enrico Buonanno public static Validator<T> FailFast<T> (IEnumerable<Validator<T&

How to simulate api calls in C# using php file

I have an online reports viewer application that stores patients records as follows: Web application view: I have created a C# application that is meant to cap

Open the same app after downloading an a update

i'm doing a application update, and i've already code the part thats download and extracts content. now, i need to close current app, and open the same, but wit

I'm getting CORS error with CORS configured on ASP.NET Core Web API app

I have an ASP.NET Core Web API hosted in Azure. When I'm trying to make a fetch request from my web app hosted on Vercell, I'm getting this error: Access to fe

typescript upgrade 1.8.10 to 2.9.2 and 4.6.4 build error

I have an angular application, using typescript 1.8.10 and working fine. I like to try and upgrade typescript from 1.8.10 to 2.9.2. Once I change this setting

Why do await Task.Delay(10); stops execution in unity Web-GL?

I am using await Task.Delay(10); in unity C# for delay .After build and run in Web-GL format .The execution stops at this line that has delay .When I remove the

Binary search with recursion c#

I got stuck with my binary search method and I don't really know what I'm doing. At this moment I got 1 Error (CS0161) not all code paths return a value int l

How does it go to its first position if I don't drag the button where I want to drag it?

enter image description hereI have 9 buttons. Three are located above, 3 are located below them. All 3 buttons are on the right side. The antonyms of the words

accessing object json.`params` (reserved keyword) from (dynamic)json in c#

I am calling an api which returns some json. The format of the received json is as follows: { "method": "depth.update", "params": [ true, { "a

How to print Test Description on Extent Report in Selenium with c#?

How can I print test description for current test in Extent Report? Here is my snippet: [SetUp] public void StartUpTest() { extent.CreateTest(TestContext.Cu

ASP.NET Core Razor Read related data into table

I am trying to create a asp.net core 2.1 razor website that will load two tables on the one page. Below i have defined my classes ItemMasters and DealMasters. I