Null Coalescing Operator
The null coalescing operator ?? returns the left-hand operand if not null, else the right.
string name = null;string display = name ?? "Guest";Console.WriteLine(display);Run the Application
Section titled “Run the Application”dotnet runResult
Section titled “Result”Guest