Category "c++sharp"

WPF - Problem showing a symbol from a custom font

I have a custom font. The font contains symbols at specific addresses. I want to display one of the symbols in a TextBlock. The font (ttf-file) is located in my

Intercept saving of entities in Entity Framework Core

Is there a way for EF Core to intercept the pre insertion, pre update, pre delete, post insert, post update and post delete events of an entity? EF core support

Data changes during fetch on a service on IIS

I am facing quite an interesting error. I have services hosted on IIS, on a server which is an application server. I have two services in focus. 1 - One is a pu

Why can't I add months to OffsetDateTime?

I'm using NodaTime to manage dates and time zones in a .Net Core WebApi. One of the type in the library is OffsetDateTime, which is very similar to DateTimeOffs

React + ASP.Net-Core CORS Problems

While CORS is a big issue when working ReactJS in combination with ASP.Net-Core I figured out how to enable CORS so when accessing my UI (http://localhost:3000)

How can I integrate toast notifications in WPF app?

I wanted to add toast notifications to my wpf app. I've followed the Send a local toast notification from desktop C# apps from Microsoft, but I'm stuck on the s

gRPC intercept calls in C#

I'm using gRPC in C# (NETCore). I would like to log each single method call, and I expect to have some way of intercpt each call at once, instead of putting a l

Best Practice winforms async/await keywords

Testing a bit TPL. I use this code and it works: async void button1_Click(object sender, EventArgs e) { MyClass2 mc2 = new MyClass2(); la

Oracle SQL statement returns no rows when executed from C# application

Following SQL statement returns data when executed in Oracle SQL Developer: SELECT TC_GUID FROM TBLBUF WHERE TC_DEST = 'aaaaaaa' AND TC_STATE <= 20 but when

MASM SHA256 running from C#

I received a task in college to compare execution time for calculating SHA256 in C# and assembly. It is supposed to be a simple WPF app with file input and 2 bu

Asp.Net Core http requests shows Headers.ContentLength

I am doing an http get call and I can see that Headers.ContentLength always returns null whereas I can see that in fiddler a value: This is my code string url =

How to execute Set-GPPermissions command without confirmation prompt

Set-GPPermissions -Guid <Guid> -TargetName "Authenticated Users" -PermissionLevel None -TargetType Group -Replace -Confirm:$false Used to work fine, but

System.IO.FileNotFoundException: 'Could not load file or assembly

I am beginner in C# and trying to add one DLL in project but getting the below error when running the project : System.IO.FileNotFoundException: 'Could not loa

Upload file uploaded via HTTP to ASP.NET further to FTP server in C#

Upload form: <form asp-action="Upload" asp-controller="Uploads" enctype="multipart/form-data"> <input type="file" name="file" maxlength="64" /> <

An exception was thrown while deserializing the token.The antiforgery token could not be decrypted in .Net Core 2.2 application

I am getting the error in my log. I spent most of my day finding the solution but could not find the one which meets my requirement. Here is the log error seve

ReactiveUI Bind an Enum Property to a Color Property in View Model

I am starting my first Reactive UI Project. I have an enum, and I want to map a specific color to a specific enum value. How could I accomplish this using React

How to copy file from Azure fileshare and zip it and move to some other place?

I have been using method in which I am taking data in bytes then creating zip file and then uploading it back to required location but I need something which is

How to find or count the duplicate in multidimensional array in c# [closed]

I am creating a 2d (3 * 3) array in c# which has to count or find the duplicate value int[,] arr = new int[3, 3] { {1, 2, 6}, {4, 1, 5}

C# Windows Messages in Console Application?

I need to use IPC to receive messages from another process. Currently I am using WPF application to receive messages using WindowsMessages but I am wondering if

Share Data Between Threads when using SpecFlow + SpecRunner

I am working on a test suit implementation which uses the SpecFlow + SpecRunner and XUnit. and we are trying to do parallel test execution and i would like to k