Class Member Operators Null Conditional Indexing

suggest change
var letters = null;
char? letter = letters?[1];
Console.WriteLine("Second Letter is {0}",letter);
//in the above example  rather than throwing an error because letters is null
//letter is assigned the value null

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents