How To
How to set json serializer settings in ASP.NET Core
12/27/2024 7:13:59 AM 153
In ASP.NET Core, you can configure JSON serializer settings for your application in a few different ways, typically through the Startup.cs or Program.cs file.
How to Remove ASP.NET server headers
12/27/2024 6:54:50 AM 90
IIS (Internet Information Services) web server sometimes sends HTTP headers that can disclose sensitive server information.
Avoiding the Common Pitfalls of the == Operator in C#
12/27/2024 3:23:20 AM 98
If you encounter an issue with the equality operator (==), specifically when comparing values of different types, extra caution is needed.
How to prevent flicker in WinForms
12/27/2024 3:22:26 AM 113
If you often update the content of a WinForms Control, you may encounter a flickering problem, particularly when the data being displayed is large.
How to Remove Response Headers in IIS
12/27/2024 3:13:15 AM 202
To remove or modify ASP.NET server headers such as X-AspNet-Version and X-Powered-By, you can use different methods depending on your version of ASP.NET and which headers you want to modify.
Pass reference type using "ref"
12/27/2024 2:52:41 AM 75
When working with reference types in C#, passing them to methods allows modifications to the object’s properties within the method.
Cannot Initialize a By-Reference Variable with a Value
12/27/2024 2:43:56 AM 61
With the introduction of "ref return" in C# 7.0, developers can now return a reference to a value from a method.
Curly Braces in string.Format in C#
12/27/2024 2:41:11 AM 181
In C#, if you want to use curly braces ({ and }) as literal characters within a string.Format() method, you need to escape them by doubling the braces.
C# Union
12/27/2024 2:40:41 AM 86
In C/C++, a union is a user-defined type where all its members share the same memory location.
Using TLS 1.2 in C#
12/27/2024 2:22:43 AM 147
.NET Framework 4.0 (and earlier versions) support SSL 3.0 and TLS 1.0, with TLS 1.0 being the successor of SSL 3.0.
How to check the size of HTTP resource in C#
12/27/2024 2:14:03 AM 71
The HTTP HEAD command is useful when we want to know the size of a resource, like a video or an image, before downloading it.
How to check internet connectivity in C#
12/27/2024 2:09:50 AM 64
The method NetworkInterface.GetIsNetworkAvailable() in .NET, available since version 2.0, checks if a network connection is available.