How To

Creating a Generic Method for Safe Cross-Thread Invocation in C#
By Tan Lee Published on Dec 26, 2024 314

In .NET, each thread runs its own code, and the UI is bound to the main thread, also known as the UI thread.

How to generate large XML sitemaps from a database in C#
By Tan Lee Published on Dec 26, 2024 210

Creating and managing XML sitemaps is essential for SEO, as it helps search engines efficiently crawl and index a website's pages.

Exception Handling in C#
By Tan Lee Published on Nov 07, 2024 382

In C# WinForms, there's no built-in automatic way to wrap all code in a try-catch block, but you can implement error handling strategies to minimize manual repetition.

How to receive a request with CSV data in ASP.NET Core
By Tan Lee Published on Dec 26, 2024 599

In a web API, you can handle CSV data in two primary ways:

What is the best way to increase the performance of the WCF services?
By Tan Lee Published on Dec 26, 2024 156

Improving the performance of Windows Communication Foundation (WCF) services can be achieved through various strategies.

WCF Performance Tuning
By Tan Lee Published on Dec 26, 2024 120

WCF (Windows Communication Foundation) is a programming platform designed to build, configure, and deploy network-distributed services.

Optimizing WCF Performance
By Tan Lee Published on Dec 26, 2024 165

Performance issues in WCF can arise from several factors, including binding types, serialization methods, and data handling strategies (e.g., using DataTables or POCOs).

LinQ to XML Data in C#
By Tan Lee Published on Dec 25, 2024 351

In this tutorial, We will cover fundamental operations such as retrieving, inserting, updating, and deleting data in XML files using Linq in C#.

Working with Configuration Files in C# .NET
By Tan Lee Published on Dec 25, 2024 376

Microsoft's .NET framework provides a simple and efficient way to handle application settings through configuration files.

How to retrieve logical drive info in C#
By Tan Lee Published on Dec 25, 2024 244

In this post, I'll share a simple method using C# to gather basic information about your computer's logical drives.

How to Work with Serial Port Communication in C#
By Tan Lee Published on Dec 25, 2024 982

In this tutorial, we’ll explore the basics of how to perform serial port communication within C# .NET applications.

The SqlParameterCollection only accepts non-null SqlParameter type objects, not SqlParameter objects
By Tan Lee Published on Dec 25, 2024 217

If you're working with Entity Framework Core (EF Core) and encounter the following exception when executing a query with parameters: