C# null operators-CSDN博客网友收藏

C# null operators-CSDN博客

文章浏览阅读586次。Null-Coalescing OperatorThe ?? operator is the null-coalescing operator. It says, “If the operand to the left is non-null, give it to me; otherwise, give me another value.” For example:string s1 = null;string s2 = s1 ?? "nothing"; // s2 evaluates to "_......
阅读全文