How To

How to use Parallel LINQ in C#
By Tan Lee Published on Jan 07, 2025 275

Parallel LINQ (PLINQ) is an extension of Language Integrated Query (LINQ) that enables declarative data parallelism by utilizing multiple cores in a system to execute queries in parallel.

How to use indexers in C#
By Tan Lee Published on Jan 07, 2025 324

In C#, indexers allow objects to be accessed like arrays, enabling you to use an object with index values.

How to use attributes in C#
By Tan Lee Published on Jan 07, 2025 545

Attributes are a powerful feature in C# that allow you to attach metadata to your assemblies.

How to use Redis Cache in C#
By Tan Lee Published on Jan 06, 2025 558

Redis is an open-source, high-performance in-memory caching engine, packed with features, that allows you to efficiently store and retrieve data in your applications.

How to use TinyIoC in ASP.NET Core
By Tan Lee Published on Jan 06, 2025 329

TinyIoC is a compact and high-performance inversion of control (IoC) container that simplifies dependency injection.

Improving Data Access Performance in EF Core
By Tan Lee Published on Jan 06, 2025 278

Entity Framework Core (EF Core) is an open-source ORM (Object-Relational Mapping) framework that connects your application's object model with the underlying database schema.

How to use Fluent Assertions in C#
By Tan Lee Published on Jan 06, 2025 700

Using the Fluent Assertions library in C# can help achieve this by making tests simple, readable, and expressive.

How to use IAsyncEnumerable in C#
By Tan Lee Published on Jan 06, 2025 579

IAsyncEnumerable is a feature introduced in C# 8.0 for working with asynchronous sequences of data.

How to use value objects in C#
By Tan Lee Published on Jan 06, 2025 321

In C#, objects are classified as either value types or reference types.

How to use the Buffer Class in C#
By Tan Lee Published on Jan 06, 2025 622

The Buffer class in .NET allows for faster access to and manipulation of data stored in memory, improving application performance.

How to use HashSet in C#
By Tan Lee Published on Jan 06, 2025 465

The HashSet is a high-performance collection used for storing unique, unordered elements, designed to speed up search operations in applications.

Logging Data to Windows Event Log in C#
By Tan Lee Published on Jan 06, 2025 869

Use the Windows Event Log to store log data for your .NET Core applications on Windows, where the OS logs issues that can be viewed with the Windows Event Viewer tool.