EN VI
Posts (0)
Questions (16)
2024-03-09 23:00:24
It looks like you're using the W3C activity ID format. (See the DefaultIdFormat property for details of that. The W3C format is documented here as traceparent. Importantly: value = version...
2024-03-10 03:00:05
There are two things that are incorrect about your code. Both of them are in this section: for (int i = 0; i < 6; i++) { dx = (int)Math.Round(Math.C...
2024-03-11 21:30:06
My question is whether the transient instances created and stored inside the factory will begin acting like a singleton? Yes, effectively. Is this a good coding approach? Arguably - no. It can be...
2024-03-12 07:00:04
You should add to web.config WebDAVModule and WebDAV in publish files like this:
Tags: c# asp.net .net
2024-03-13 15:00:05
Your user class only contains fields, no properties. By default, only properties get serialized. In the working case, you are instantiation anonymous types, not Users. Anonymous types by definition ha...
Tags: c# .net API
2024-03-13 20:00:06
While decrypting, what you need to do is read data from the encrypted file through CryptoStream. using (CryptoStream cryptoStream = new CryptoStream(inputFileStream,...
Tags: c# .net aes
2024-03-14 01:00:04
To differentiate between the two GET endpoints on the same controller, you need to add routing to each endpoint. For the first endpoint [Route("category/{category}")] and for the second endpoint [Rou...
Tags: c# .net blazor
2024-03-14 01:30:06
ToList() will not create a CollectionOfA. You could assign a CollectionOfA (i.e., the more derived class) to a List (the less derived class) but not the other way round. The way to go is to use the So...
Tags: c# .net visual-studio
2024-03-14 16:00:07
Add a configuration (Pc) in your .csproj file, and add the PC symbol: $(DefineConstants);PC Use -c option to pick this configuration: dotnet publish -c:Pc Use msbuild's -getProperty and -p o...
Tags: c# .net msbuild
2024-03-14 22:00:05
It appears to stand for the SuppressUnmanagedCodeSecurity attribute. See the source code for WaitForMultipleObjectsEx /// /// Critical as this code performs an elevation. /// [SecurityCritical] [Suppr...
Tags: .net comments clr

Login


Forgot Your Password?

Create Account


Lost your password? Please enter your email address. You will receive a link to create a new password.

Reset Password

Back to login