What does x?.y?.z mean?

前端 未结 3 2071
感情败类
感情败类 2020-12-02 17:51

The draft spec for Pattern Matching in C# contains the following code example:

Type? v = x?.y?.z; 
if (v.HasValue) {
    var value = v.GetValueOrDefault();           


        
3条回答
提交回复
热议问题