How To

Using ref, out param in Lambda
By Tan Lee Published on Dec 26, 2024 330

Lambda expressions provide a concise way to define anonymous methods (or inline delegate functions) in C#.

How to Use HTML Colors in C#
By Tan Lee Published on Dec 26, 2024 312

In C#, there are several ways to specify HTML color codes using the built-in Color class in the .NET framework.

Image vs Bitmap in C#
By Tan Lee Published on Dec 26, 2024 297

Many people often get confused about when to use the Bitmap class versus the Image class in C#.

How to Save a PNG File in C#
By Tan Lee Published on Dec 26, 2024 621

In C#, it's simple to work with images by manipulating them as Bitmap objects.

How to load an image in C#
By Tan Lee Published on Dec 26, 2024 399

In C#, you can load an image using the System.Drawing namespace, which provides the Image class.

How to Combine Images in C#
By Tan Lee Published on Dec 26, 2024 343

In this tutorial, we'll walk through the steps of creating a function that takes in several images and combines them into a seamless composition.

Creating MSBuild Tasks in C#
By Tan Lee Published on Dec 26, 2024 448

MSBuild allows you to extend its functionality by creating custom build tasks using C# (or any .NET language), which can be incorporated directly into your MSBuild project files.

Creating a Simple Windows Service in C#
By Tan Lee Published on Dec 26, 2024 206

A Windows Service is an executable that runs continuously without requiring user interaction.

Creating and Reading Global Attributes in C#
By Tan Lee Published on Dec 26, 2024 227

When you create a new project in Visual Studio, an AssemblyInfo.cs file is often automatically created.

How to get an Enum from a String in C#
By Tan Lee Published on Dec 26, 2024 291

In this tutorial, we’ll demonstrate how to convert an enum from a string value in C#.

Benchmarking with Stopwatch in C#
By Tan Lee Published on Dec 26, 2024 236

In this article, I’ll explain how to track time in a .NET application using the basic Stopwatch class.

Creating a Fluent API in C#
By Tan Lee Published on Dec 26, 2024 250

Fluent interfaces provide a smooth, discoverable way for developers to interact with functionality.