网站介绍:文章浏览阅读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 "_c# null operator
- 链接地址:https://blog.csdn.net/sjt19910311/article/details/115458745
- 链接标题:C# null operators-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:5407
- 网站标签:c# null operator