Category: C#
C# is a powerful, object-oriented programming language used to build Windows applications, web apps, games, and mobile apps.

Case insensitive comparison in C#
You can ignore the casing of a string in C# using several methods, each with slightly different nuances. Here's a breakdown with examples:
1. Usin [...]

Update the GUI from a different thread in C#
You can't directly update UI elements from a background thread in C#. Doing so will lead to exceptions and unpredictable behavior because UI controls [...]

Escape curly braces in an interpolated string in C#
You escape braces in a C# interpolated string by doubling them. So, { becomes {{ and } becomes }}.
Here's a breakdown and examples:
Why you nee [...]

Regex in C#
Regex provides a powerful way to search, match, and manipulate text based on patterns. Here's a breakdown of how it works, including common tokens an [...]

Building a String Encryption/Decryption Class in C#
How to create a C# class for encrypting and decrypting strings provided by the user. We'll use a simple symmetric encryption method (XOR) for demonst [...]

Inheritance in C#
Inheritance is a fundamental pillar of object-oriented programming (OOP) that allows you to create new classes (derived or child classes) based on ex [...]

How to use oAuth 2.0 in C#
Let's break down how to use OAuth 2.0 in C#. OAuth 2.0 is an authorization framework, not authentication. It allows third-party applications to acces [...]

Null propagation operator in C#
The null-propagation operator (?.) in C# is a powerful tool that helps you write cleaner and more concise code when dealing with potentially null obj [...]

Casting int to enum in C#
Sometimes you might come up with this, and the solution is simpler than what we thing
The first way is
YourEnum foo = (YourEnum)yourInt;
If [...]

Numeric data types in C#
C# offers a variety of numeric data types to handle different kinds of numbers. These types are categorized based on whether they store whole numbers [...]