C# 10 in a Nutshell

Joseph Albahari

June 01, 2022 2. C# Language Basics

You can insert an underscore anywhere within a numeric literal to make it more readable:

June 01, 2022 2. C# Language Basics

decrementing the minimum possible int value results in the maximum possible int value:

June 12, 2022 2. C# Language Basics

The ??= operator (introduced in C&#35 8) is the null-coalescing assignment operator. It says, “If the operand to the left is null, assign the right operand to the left operand.”