Search
Marking Deprecated Code as Obsolete in C#
By Tan Lee Published on Jan 09, 2025 333
If certain code is no longer needed, outdated, or no longer maintained, you can mark it as obsolete.
Read moreHow to Add User-Agent to Application Insights Telemetry in C# Using Middleware
By Tan Lee Published on Jan 09, 2025 398
To achieve this, we’ll implement a custom middleware.
Read moreHow to Sort a List of Dynamic Objects in C#
By Tan Lee Published on Jan 09, 2025 379
The dynamic type in C# allows you to work with objects without specifying their exact type ahead of time.
Read moreSorting JArray in C# with Newtonsoft.Json
By Tan Lee Published on Jan 09, 2025 272
Although you can't directly sort a JArray in C#, you can work around this limitation.
Read moreLowercase JSON Attributes in C# API Responses
By Tan Lee Published on Jan 09, 2025 308
When developing an API in C#, you can customize how the JSON response is formatted.
Read moreCreating Dynamic Arrays and Lists with Dynamic and ExpandoObject in C#
By Tan Lee Published on Jan 09, 2025 597
In this example, we demonstrate creating a dynamic list where the number of objects is not known in advance.
Read moreConverting One JSON to Another in C# Using Newtonsoft and Dynamic ExpandoObject
By Tan Lee Published on Jan 09, 2025 284
The task of transforming one JSON format into another is quite common.
Read moreConvert array of objects into a DataTable in C#
By Tan Lee Published on Jan 09, 2025 329
This extension method allows you to easily convert an array of objects into a DataTable, which can be used for SQL insert operations.
Read moreHow to Calculate Week Number from DateTime in C#
By Tan Lee Published on Jan 09, 2025 404
Calculating the week number is more complex than it initially seems.
Read moreUsing HttpClient with Sync and Async in C#
By Tan Lee Published on Jan 09, 2025 462
The System.Net.Http.HttpClient() provides a robust HTTP client, but using it can be a challenge, especially if you're not familiar with asynchronous programming like I wasn't.
Read more