Category "c++sharp"

How to work with gas days in a C# project?

A gas day is defined as a time range of 24 hours which starts at 5:00 UTC and ends at 5:00 UTC of the following day during the European standard time. During th

How to refresh web page after database update in ASP.NET CORE with Blazor

I'm making a small room booking web app and I would like to have the web page refresh on a given interval; ie a given minute or when a change has been done to t

save data and open in another class

I've got a litlle problem: How do I get stored data from one model into another? I've got an app which is loading strings from a textbox and I want to save them

WPF Canvas: Rotate a grouped shape

In my WPF application, I am trying to rotate a set of grouped shapes inside a canvas. I am getting grouped shape object TOP/LEFT position using the formulae men

How to improve unity management on android? unity2D

please tell me how to make the player control was not tied to the finger, but for example to drive in any part of the screen and the player will move from the p

Xamarin: How to delete files using CrossFilePicker Xamarin Forms

I am using the following code to pick a file using CrossFilePicker in Xamarin forms. Goal is to delete the selected file in Xamarin.Android project, file still

WPF Canvas: Rotate a grouped shape

In my WPF application, I am trying to rotate a set of grouped shapes inside a canvas. I am getting grouped shape object TOP/LEFT position using the formulae men

Remove all non-essential json formatting in C#

Let's say I have some convoluted json like so: { "ref": "some", "repository": { "id": 123456789, "name": "foo bar" } } I'm trying to get it into

Connect Blazor WASM app to Azure Key Vault

I am asking for your help because i have some trouble with the connection of my app to Azure key vault (title of the subject). The architecture of my project lo

read onedrive api errors

I am current using the following to try and create an upload session with the onedrive api HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); requ

Connect Blazor WASM app to Azure Key Vault

I am asking for your help because i have some trouble with the connection of my app to Azure key vault (title of the subject). The architecture of my project lo

How to call a callback function on a GUI event? Delegates?

I'm very new to C# and I'm wondering if using delegates is the right way here: I created a UserControl in Visual Studio Windows Forms Designer. In a TableLayout

Datagridview Error After Rowfilter -> Data Update/Add and Fill Process

I have a datagridview which filled by SQL table. When I search a value with a textbox in the data and update/insert the some values and use fill function again

Remove all non-essential json formatting in C#

Let's say I have some convoluted json like so: { "ref": "some", "repository": { "id": 123456789, "name": "foo bar" } } I'm trying to get it into

Deadlock on Select from table-valued parameter

I have this piece of code which acquires connection from EF Core DB context and executes select on the received data. var conn = _dbContext.Database.GetDbConnec

Why does a zero-length stackalloc make the C# compiler happy to allow conditional stackallocs?

The following "fix" is very confusing to me; the scenario here is conditionally deciding whether to use the stack vs a leased buffer depending on the size - a p

How to show deserialized TempData object in view?

I'm getting System.NullReferenceException: 'Object reference not set to an instance of an object.' error in Index2.cshtml file after deserializing my TempData o

Is there any way to clear the cache, cookies & History for Edge Browser

I am working on RPA Automations Project, where we need to login into a Application using the Edge browser, after logging we need to make few update and complete

How to publish different solutions (and repositories) to the same project?

I have an Azure DevOps project that contains a solution that is published to an URL like custom.mycompany.com. Is it possible to publish another solution in a d

Guid Instead of string for primary key / ID for ASP.Net Core 3.1 Identity

This no longer works with ASP.Net Core 3.1 / .Net Core 3.1 https://stackoverflow.com/a/37173202/1698480 Compile error:'IdentityBuilder' does not contain a de