How To

How to implement simple Memory Cache for Web API
By Tan Lee Published on May 31, 2024 651

Caching helps reduce access to frequently accessed data and less changes in the database, so the application will run faster. Remember that you must ensure that two criteria are regular access level and little change in data.

How to fix LoginPath not working in ASP.NET Core
By Tan Lee Published on Jun 10, 2024 1.92K

If you’re facing issues with LoginPath in ASP.NET Core, it’s usually related to the configuration of the authentication middleware, typically within the Startup.cs or Program.cs file.

How to disable sorting with jquery datatable
By Tan Lee Published on Feb 16, 2024 1.37K

To disable sorting in a jQuery DataTable, you can use the ordering option in the DataTable initialization.

How to fix ckeditor4-secure-version/versions.json?v=4.22.1
By Tan Lee Published on Feb 05, 2024 594

To fix issues related to ckeditor4-secure-version/versions.json?v=4.22.1, you can follow these steps.

How to encode and decode a base64 string in C#
By Tan Lee Published on Jan 31, 2024 795

In C#, you can encode and decode Base64 strings using the Convert class, which provides methods for encoding and decoding.

How to use named tuples in C#
By Tan Lee Published on Mar 05, 2025 358

Tuples allow you to store multiple values together, which can be useful for passing around related data.

How to deconstruct tuples in C#
By Tan Lee Published on Mar 05, 2025 318

Deconstructing a tuple allows you to assign its values to multiple variables simultaneously using the deconstruction assignment syntax.

How to sort a dictionary in C#
By Tan Lee Published on Mar 05, 2025 491

Dictionaries in C# are unordered collections where key-value pairs are not stored in any particular order. Sometimes, you might want to sort the dictionary by either its keys or values.

How to sort a list in C#
By Tan Lee Published on Mar 05, 2025 476

When you need to sort a list, you don't have to overcomplicate things.

How to Convert list to array in C#
By Tan Lee Published on Mar 05, 2025 363

The easiest way to convert a list to an array is by using the List.ToArray() method.

How to Convert an array to a list in C#
By Tan Lee Published on Mar 05, 2025 336

To convert an array to a list, the simplest and most efficient way is by using the ToList() Linq method:

How to Add Items to a List in C#
By Tan Lee Published on Mar 05, 2025 480

In C#, there are several methods available to add items to a list.