a.int、DateTime 不能
b.因为其为 Struct 类型,而结构属于值类型,值类型不能为 null,只有引用类型才能被赋值 null。 string 可以为 null
最后
以上就是慈祥月饼最近收集整理的关于int、DateTime、string是否可以为 null?的全部内容,更多相关int、DateTime、string是否可以为内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
a.int、DateTime 不能
b.因为其为 Struct 类型,而结构属于值类型,值类型不能为 null,只有引用类型才能被赋值 null。 string 可以为 null
以上就是慈祥月饼最近收集整理的关于int、DateTime、string是否可以为 null?的全部内容,更多相关int、DateTime、string是否可以为内容请搜索靠谱客的其他文章。
发表评论 取消回复