string? maybe = null; // ?? supplies a fallback when null Console.WriteLine(maybe ?? "fallback"); // ?. short-circuits to null instead of throwing Console.WriteLine(maybe?.Length ?? -1);
? marks a maybe-null reference