How To
How to use IN with Dapper in C#
By Tan Lee Published on Jan 18, 2025 305
Imagine you have a SQL query that uses the IN clause, and you need to execute it using Dapper.
Execute a stored procedure with Dapper in C#
By Tan Lee Published on Jan 18, 2025 295
You can execute stored procedures using Dapper by specifying the procedure name, parameters, and setting the CommandType to StoredProcedure.
C# EventHandler
By Tan Lee Published on Jan 18, 2025 240
Events are a core implementation of the observer pattern and consist of two main components:
Content Negotiation in Web API
By Tan Lee Published on Jan 17, 2025 201
Content negotiation is a process that enables a client to request a specific representation of a resource, such as JSON, XML, or plain text, when multiple formats are available.
How to Consume RESTful APIs in C#
By Tan Lee Published on Jan 17, 2025 240
When working on a web development project, you'll often find the need to interact with external services or data.
How to Parse RSS and ATOM Feeds in C#
By Tan Lee Published on Jan 17, 2025 261
In this article, we’ll learn how to parse RSS and ATOM feeds using C#.
How to fix 'InvalidOperationException: Scheme already exists: Bearer'
By Tan Lee Published on Jan 17, 2025 652
The System.InvalidOperationException: Scheme already exists: bearer error typically occurs when you're working with authentication in a .NET application, and you've registered the Bearer authentication scheme multiple times, which causes a conflict.
How to disable Form Resize on Title Bar Double-Click in C#
By Tan Lee Published on Nov 26, 2024 774
To prevent the form from being resized or restored when a user double-clicks on the title bar (or when the title bar is clicked), you can use the WndProc method to intercept and handle Windows messages directly within your form.
Deep Cloning A Connected Graph Of Objects in C#
By Tan Lee Published on Jan 16, 2025 260
When programming, you may occasionally need to create a deep copy of a complex data structure.
Determining if Aero is Enabled in C#
By Tan Lee Published on Jan 16, 2025 195
While working on a recent project, I needed to adjust the UI based on whether Aero Glass was enabled in Windows.
Taking Screenshots in C#
By Tan Lee Published on Jan 16, 2025 326
As developers, we often need to capture screenshots to help illustrate complex code, designs, or issues.
Using the ThreadPool in C#
By Tan Lee Published on Jan 16, 2025 287
Multi-threading is a powerful concept that can significantly enhance the performance of applications by allowing multiple tasks to run concurrently.