Search

How to Use the New Lock Object in C#
By Tan Lee Published on Jan 15, 2025 406

C# has supported thread synchronization with the `lock` keyword since its early versions, ensuring that only one thread executes a block of code at a time.

Read more
How to Deserialize XML array to string[] in C#
By Tan Lee Published on Jan 14, 2025 356

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

Read more
Serializing Object with Multiple String Properties to JSON Array in C#
By Tan Lee Published on Jan 14, 2025 435

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.

Read more
How to Add Combobox to DataGridView in C#
By Tan Lee Published on Jun 08, 2017 9.89K

To add a ComboBox to a DataGridView in a Windows Forms application using C# and Entity Framework (Database First approach), you need to follow these steps.

Read more
How to implement an asynchronous socket in C#
By Tan Lee Published on Jan 07, 2025 767

A socket is the endpoint for two-way communication between two processes operating over a network.

Read more
How to generate QRCode in RDLC Report using C#
By Tan Lee Published on Jun 15, 2024 22.2K

To generate a QR code in an RDLC (Report Definition Language Client-side) report using C# in a Windows Forms application, you can follow these steps.

Read more
How to Read and Write csv file in C#
By Tan Lee Published on Jul 16, 2024 20.07K

To read CSV data into a DataGridView and write data back to a CSV file using the CsvHelper library in a C# Windows Forms application, follow these steps.

Read more
Manipulating XML Google Merchant Data with C# and LINQ
By Tan Lee Published on Jan 10, 2025 291

When working with data from the Google Merchant Center, you often receive a Google Product Feed, typically in XML format, containing product information.

Read more
Set Local Folder for .NET Core in C#
By Tan Lee Published on Jan 10, 2025 259

When developing a .NET Core Worker Service, you can configure the service to run as a Windows Service using the following code.

Read more
API Versioning in C# .NET Core
By Tan Lee Published on Jan 10, 2025 284

In .NET Core, managing API versions is a critical aspect of maintaining backward compatibility and evolving your APIs without breaking existing clients.

Read more