How To
How to send web request to URL in C#
1/9/2025 4:38:06 AM 186
In this post, we will cover how to send a web request to a URL in order to retrieve data.
How to iterate over Enum in C#
1/9/2025 4:34:36 AM 125
In this post, we will explore the topic of "How to iterate over an Enum in C#?" The Enum type is a commonly used feature in many C# applications.
Thread Lock in C#
1/9/2025 4:28:59 AM 106
In this article, we will explore the concept of thread locking in C# and how locks ensure exclusive access to shared resources.
Connecting to Multiple Databases in C# using DataContext
1/9/2025 4:22:57 AM 239
As your application grows, you might find the need to connect to two or more databases.
Injecting ILogger into Dapper Polly Retry Policy in C#
1/9/2025 4:06:19 AM 117
There are many articles available on how to implement a retry policy when using Dapper, and I particularly like the extension method approach.
Marking Deprecated Code as Obsolete in C#
1/9/2025 3:48:47 AM 167
If certain code is no longer needed, outdated, or no longer maintained, you can mark it as obsolete.
How to Add User-Agent to Application Insights Telemetry in C# Using Middleware
1/9/2025 3:44:14 AM 222
To achieve this, we’ll implement a custom middleware.
How to Sort a List of Dynamic Objects in C#
1/9/2025 3:32:15 AM 152
The dynamic type in C# allows you to work with objects without specifying their exact type ahead of time.
Sorting JArray in C# with Newtonsoft.Json
1/9/2025 3:29:46 AM 111
Although you can't directly sort a JArray in C#, you can work around this limitation.
Lowercase JSON Attributes in C# API Responses
1/9/2025 3:23:52 AM 154
When developing an API in C#, you can customize how the JSON response is formatted.
Batch JSON Arrays with LINQ Chunk Method
1/9/2025 3:18:48 AM 82
By utilizing the LINQ Chunk method, you can transform a one-dimensional array into a two-dimensional array (batches).
HttpClient Retry with .NET Core, Polly, and IHttpClientFactory
1/9/2025 3:15:23 AM 208
Many HTTP errors are temporary and caused by issues such as server overload, network timeouts, or transient glitches.