Search

Difference between Array and ArrayList in C#
By Tan Lee Published on Feb 07, 2025 147

In C#, both Array and ArrayList are used to store collections of elements.

Read more
Writing Text to a Physical File Using StreamWriter in C#
By Tan Lee Published on Feb 07, 2025 153

To write text to a physical file using StreamWriter in C#, you can follow these steps.

Read more
Difference between string and StringBuilder in C#
By Tan Lee Published on Feb 07, 2025 184

In C#, both string and StringBuilder are used to work with text, but they differ significantly in how they handle memory and performance when modifying text.

Read more
DateTime formats in C#
By Tan Lee Published on Feb 07, 2025 163

In C#, you can convert a `DateTime` object to a string in various formats using the `ToString()` method. By passing the desired format as a string parameter to the `ToString()` method, you can retrieve the date and time in the required format.

Read more
C# JSON
By Tan Lee Published on Dec 14, 2024 269

In C#, you can work with JSON using libraries such as Newtonsoft.Json or the built-in System.Text.Json in .NET Core.

Read more
How to get unix timestamp in C#
By Tan Lee Published on Jul 11, 2024 2.25K

In C#, you can get the Unix timestamp, which represents the number of seconds that have elapsed since January 1, 1970 (Unix epoch), in a couple of ways.

Read more
How to make concurrent requests with HttpClient in C#
By Tan Lee Published on Jan 21, 2025 831

The HttpClient class is designed for making concurrent requests. It is thread-safe, meaning you can send multiple requests at the same time, whether from a single thread or multiple threads.

Read more
How to Create Barcode Images from a string in C#
By Tan Lee Published on Jul 16, 2024 12.73K

Creating barcode images from a string in a C# Windows Forms application using the BarcodeLib library is quite straightforward.

Read more
How to Add close button to tab control in C#
By Tan Lee Published on Jun 21, 2024 18.6K

Adding a close button to each tab in a TabControl in a C# Windows Forms Application involves several steps.

Read more
How to download multiple files in C# using Parallel
By Tan Lee Published on May 25, 2024 9.34K

Downloading multiple files in parallel in a C# Windows Forms Application can be efficiently achieved using asynchronous programming techniques along with Task and HttpClient.

Read more