Search

How to use symmetric and asymmetric encryption in C#
By Tan Lee Published on Jan 02, 2025 378

This article teaches how to secure data in .NET applications by encrypting and decrypting it using either a single key (symmetric encryption) or a public/private key pair (asymmetric encryption).

Read more
How to Read an Excel File in C#
By Tan Lee Published on Jul 16, 2024 10.79K

To read Excel files (.xls or .xlsx) using the ExcelDataReader library in a C# application, follow these steps.

Read more
How to implement a custom object mapper in C#
By Tan Lee Published on Dec 31, 2024 305

AutoMapper simplifies the process of object mapping, especially when dealing with objects that have similar structures.

Read more
How to use DispatchProxy in C#
By Tan Lee Published on Dec 31, 2024 297

In C#, aspect-oriented programming (AOP) allows developers to isolate cross-cutting concerns such as logging, authentication, and caching separately from core business logic.

Read more
Action, Func, and Predicate delegates in C#
By Tan Lee Published on Dec 31, 2024 339

Delegates in C# are powerful tools that help manage method callbacks and provide flexibility in code.

Read more
abstract class vs interface in C#
By Tan Lee Published on Dec 31, 2024 229

When designing flexible and maintainable applications, it's important to understand the differences between abstract classes and interfaces.

Read more
How to chunk data using LINQ in C#
By Tan Lee Published on Dec 30, 2024 389

The Chunk method in LINQ is a powerful tool for dividing large datasets into smaller, more manageable chunks, improving efficiency in data processing.

Read more
How to split strings efficiently in C#
By Tan Lee Published on Dec 30, 2024 380

Optimizing performance in .NET applications involves careful resource management, especially when working with strings.

Read more
How to use ref structs in C#
By Tan Lee Published on Dec 30, 2024 222

C# 13 introduces new ways to take advantage of ref structs to optimize memory usage and eliminate garbage collection (GC) overhead.

Read more
How to convert file data to byte array in C#
By Tan Lee Published on Dec 30, 2024 444

If you're uploading a ZIP file to Azure Blob Storage, you would first need to convert the file into a byte array.

Read more