c# - 下面的语句解释了什么

标签 c# .net-4.0 properties nullable

公共(public)虚拟 int? NoRw { 得到;放; }

这里的数据类型是什么?使用属性 NoRw 指定为什么我们需要这样使用

最佳答案

可为空的整数:

http://msdn.microsoft.com/en-us/library/1t3y8s4s(v=vs.80).aspx

A nullable type can represent the normal range of values for its underlying value type, plus an additional null value.

关于c# - 下面的语句解释了什么,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7347424/

相关文章:

c# - 如何在 unity c# 脚本中将 Material 设置为游戏对象?

visual-studio-2010 - 适用于 .NET 4.0 的 FxCop

c# - 如何在 C# 中将多个函数作为约束参数传递?

.net - 将 c++ 项目从 4.0 转换为 3.5 框架

java - 使用 Java 打开文件的属性窗口

c# - 如何解决这个错误 : RabbitMQ. Client.Exceptions.BrokerUnreachableException: 'None of the specified endpoints were reachable'

c# - 保护使用使用 twitter 登录的应用程序的 API

c# - 包装属性 setter

c# - C# 属性的评估时间

c# - WPF:当某个值更改时重新应用 DataTemplateSelector