什么是" DateTime的"而不是仅仅在C#中的DateTime? [英] What is a "DateTime?" as opposed to just a DateTime in C#?

查看:121
本文介绍了什么是" DateTime的"而不是仅仅在C#中的DateTime?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是什么的DateTime?的DateTime (没有问号)在C#?<的区别/ p>

解决方案

的DateTime?可以为空,而不是日期时间


What is the difference between a DateTime? and a DateTime (without a question mark) in C#?

解决方案

DateTime? can be null as opposed to DateTime

这篇关于什么是&QUOT; DateTime的&QUOT;而不是仅仅在C#中的DateTime?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆