How To
Creating Dynamic Arrays and Lists with Dynamic and ExpandoObject in C#
1/9/2025 3:01:32 AM 155
In this example, we demonstrate creating a dynamic list where the number of objects is not known in advance.
Converting One JSON to Another in C# Using Newtonsoft and Dynamic ExpandoObject
1/9/2025 2:58:17 AM 56
The task of transforming one JSON format into another is quite common.
Convert array of objects into a DataTable in C#
1/9/2025 2:47:40 AM 35
This extension method allows you to easily convert an array of objects into a DataTable, which can be used for SQL insert operations.
‘SHA256Managed’ is obsolete: ‘Derived cryptographic types are obsolete
1/9/2025 2:43:01 AM 38
Warning SYSLIB0021 'SHA512Managed' is obsolete: 'Derived cryptographic types are obsolete. Use the Create method on the base type instead.'
How to Calculate Week Number from DateTime in C#
1/9/2025 2:37:15 AM 59
Calculating the week number is more complex than it initially seems.
Using HttpClient with Sync and Async in C#
1/9/2025 2:27:13 AM 134
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.
Unable to read data from the transport connection: The connection was closed
1/9/2025 2:23:09 AM 32
If you get an error when attempting to retrieve an image via a WebRequest, the error message is shown below.
HttpClient POST or PUT Json with content type application/json
1/9/2025 2:17:07 AM 46
The HttpClient is a modern and flexible way to interact with URLs, whether you're retrieving data or sending it.
How to use HttpClient and IHttpClientFactory in .NET Core
1/9/2025 2:13:05 AM 139
When working with APIs in C#, the HttpClient class is essential for making HTTP requests such as GET, PUT, POST, or DELETE.
How to Use HttpClient to GET JSON from API endpoint in C#
1/9/2025 2:07:44 AM 148
Why not create a method that can make a GET request to an API and directly return the response as an object?
How to Send x-www-form-urlencoded Data with HttpClient in C#
1/9/2025 2:01:52 AM 56
To send x-www-form-urlencoded data in C# using HttpClient, you can follow these steps:
How to Get Total Physical RAM in C#
1/8/2025 9:55:07 AM 73
Retrieving the total installed physical memory (RAM) on the system is straightforward.