简体   繁体   English

什么是正确的名称? 运营商?

[英]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.

相关问题 SQLite where语句中正确的AND运算符是什么 - What is the proper AND operator in SQLite where statement 执行SQL查询的方法的专有名称是什么? - What is a proper name for a method that execute SQL query? 在XML中存储文件名的正确方法是什么? - What is the proper way to store a file name in XML? 提取Rally任务的所有者名称的正确方法是什么? - What is the proper way to fetch the Owner Name of a Rally Task? 像属性一样的方法中变量的专有名称是什么? - What is the proper name for variables in a method that acts like a property? 设置和拆除单元测试上下文的概念的正确名称是什么? - What would be a proper name for the concept of setting up and tearing down a unit-test context? 捕获和识别HttpRequestException“无法解析远程名称:'www.example.com'”的正确方法是什么? - What is the proper way to catch and identify the HttpRequestException “The remote name could not be resolved: 'www.example.com'”? 从C#关键字获取正确类型名称的最佳方法是什么? - What is the best way to get a proper type name from a C# keyword? 绑定到值的正确方法是什么,同时在该项目上定义的预设列表中显示友好名称? - What is the proper way to bind to a value while showing a friendly name from a list of presets also defined on that item? 什么是适当的MvcContrib 3语法? - What is the proper MvcContrib 3 syntax for this?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM