How To
How to Get an Enum from a Number in C#
By Tan Lee Published on Jan 16, 2025 236
To get an enum from a number in C#, you can use the Enum.ToObject method, which allows you to convert an integer value to its corresponding enum value.
How to Change the Text Selection in a DataGridViewCell in C#
By Tan Lee Published on Jan 16, 2025 218
In this tutorial, we’ll walk through how to change the text selection in a DataGridViewCell in C#.
C# Custom List Sorting
By Tan Lee Published on Jan 16, 2025 490
In C#, the List<T> class is a powerful collection type, providing built-in methods to efficiently sort and search data.
Get File Listings in C#
By Tan Lee Published on Jan 16, 2025 275
To get file listings in C#, you can use the System.IO namespace, which provides classes like DirectoryInfo and FileInfo for interacting with the file system.
Editing the Windows Registry in C#
By Tan Lee Published on Jan 16, 2025 364
In this tutorial, we'll explore how to edit the Windows registry using C#. We will cover the steps to create new keys and values, as well as modify existing ones.
C# Image Rotation
By Tan Lee Published on Jan 16, 2025 306
In this article, we will continue our exploration of image editing techniques in C# by focusing on a simple method to rotate an image, similar to how it's done in Adobe Photoshop.
Using the Conditional Attribute in C#
By Tan Lee Published on Jan 16, 2025 214
In C#, we often use methods like Debug.WriteLine and Debug.Assert to help with debugging during development.
Understanding Select and SelectMany in C#
By Tan Lee Published on Jan 15, 2025 260
In C#, Select and SelectMany are both LINQ (Language Integrated Query) methods that are used to project or transform elements in a collection.
Message Box C#
By Tan Lee Published on Jan 15, 2025 707
In C#, you can display a message box using the MessageBox class from the System.Windows.Forms namespace.
JavaScript String Encoding in C#
By Tan Lee Published on Jan 15, 2025 373
The System.Uri.EscapeDataString() method in C# is used to encode a string so that it can be safely included in a URI.
Sending an email via SparkPost in C#
By Tan Lee Published on Jan 15, 2025 200
SparkPost is a reliable and cost-effective email delivery service that provides easy integration and powerful features for email communication.
How to Use the New Lock Object in C#
By Tan Lee Published on Jan 15, 2025 367
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.