[英]What is the proper name for the ?? operator?
I had a look on MSDN but they don't seem to refer to it by name. 我在MSDN上看了一下,但它们似乎没有按名称引用它。
What's the official name for the ??
什么是官方名称
??
operator? 运营商?
它被称为null-coalescing运算符 。
It is called null-coalescing operator . 它被称为null-coalescing运算符 。
Look at The C# ?? 看看C#?? null coalescing operator from Scott Guthrie.
来自Scott Guthrie的null合并运算符 。
One of the subtle language features of C# is the ??
C#的一个微妙的语言特征是? "null coalescing" operator.
“null coalescing”运算符。 This provides a nice, terse way to check whether a value is null, and if so return an alternate value.
这提供了一种很好的简洁方法来检查值是否为null,如果是,则返回备用值。
The operator ??
操作员
??
is called null-coalescing operator 被称为null-coalescing运算符
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.