c# dot question mark operator code example
Example 1: c# dot question mark
FileInfo fi = ...; // fi could be null
long? length = fi?.Length; // If fi is null, length will be null
Example 2: c# question mark
FileInfo fi = ...; // fi could be null
long? length = fi?.Length; // If fi is null, length will be null