How To

Mask email address for GDPR reasons
1/14/2025 9:51:16 AM  67

With the introduction of the General Data Protection Regulation (GDPR), companies must be extra cautious about handling personal data, including email addresses.

Add Thread ID to the Log File using Serilog
1/14/2025 9:11:33 AM  34

To add the Thread ID to the log file using Serilog in an ASP.NET Core application, you can follow these steps:

How to Deserialize XML array to string[] in C#
1/14/2025 8:56:58 AM  39

To deserialize an XML array into a string[] type, you can use the XmlArray and XmlArrayItem attributes.

How to Change date format using .NET Regular Expressions
1/14/2025 8:43:47 AM  36

To change a date format using .NET Regular Expressions, you follow these steps.

Handling Exceptions in .NET Core API with Middleware
1/14/2025 8:32:42 AM  119

Handling exceptions effectively in a .NET Core API is critical for providing a robust and user-friendly API.

Limits on ThreadPool.SetMinThreads and SetMaxThreads
1/14/2025 7:31:26 AM  59

In an ASP.NET Core project, managing worker threads for task execution is crucial for optimizing performance, especially when dealing with a high volume of incoming HTTP requests.

Controlling DateTime Format in JSON Output with JsonSerializerOptions
1/14/2025 7:20:34 AM  111

When building APIs with .NET Core MVC, you may want to control how your data is serialized into JSON format.

Serializing Object with Multiple String Properties to JSON Array in C#
1/14/2025 7:18:13 AM  83

If you're working with a Property class containing multiple string properties, and you need to serialize it into a JSON array where each string property becomes its own object, you're in the right place.

‘s’ is an invalid start of a value. Path: $ in ASP.NET Core
1/14/2025 6:57:36 AM  73

When working with ASP.NET Core API controllers, you might want to create an endpoint that can accept any string.

How to set data attribute in JQuery
1/14/2025 4:19:57 AM  189

In jQuery, you can set a data attribute using the .data() method or by directly manipulating the data-* attribute using .attr().

How to group by multiple columns using LINQ
1/14/2025 4:02:47 AM  114

In LINQ, you can group by multiple columns using the group by clause in combination with anonymous types.

How to get CPU temperature in C#
1/14/2025 3:24:43 AM  739

To get the CPU temperature in C#, you can use WMI (Windows Management Instrumentation) to query sensor data.