LANGUAGE
Null-conditional member access ?.
Skips member access if the receiver is null. Errors from operations on a non-null receiver can still occur.
Formal Syntax & Structure
csharp syntaxcsharp
receiver?.MemberWorking Example
Example Snippetcsharp
string? label = null; int? length = label?.Length;