Nullable

string? name;

It means name is string or ``null`.

To read it safely:

name.GetValueOrDefault();

C# supports conditional operator.

string john = (name != null) ? name : "John";

C# supports null coalescing operator.

string john = name ?? "Jonh";