Software Development

C# – Null-Coalescing Operator (??)

Using the null-coalescing operator is a concise way to check if a variable or function has a value before returning it and if the variable or function does not have a value then return a default value. In C#, two consecutive question mark characters ?? is used as the null-coalescing operator.

C# – String Interpolation

This tutorial will explain what string interpolation is and how to use it in the C# programming language. The tutorial will also compare strings created with string interpolation to strings created by concatenation and composite formatting to show the benefits of using string interpolation.