Questions tagged «nothing»

9
虚无与虚无
没有人在这里用VB.NET和有强烈的偏好支持或反对IsNothing,而不是Is Nothing(例如,If IsNothing(anObject)或If anObject Is Nothing...)?如果是这样,为什么? 编辑:如果您认为它们都同样可以接受,您是否认为最好选择一个并坚持使用,还是可以将它们混合在一起?
130 vb.net  nothing 

8
为什么不能检查“ DateTime”是否为“ Nothing”?
在VB.NET中,是否可以将DateTime变量设置为“未设置”?为什么可以将a设置DateTime为Nothing,但不能检查是否为a Nothing?例如: Dim d As DateTime = Nothing Dim boolNotSet As Boolean = d Is Nothing 第二条语句抛出此错误: 'Is' operator does not accept operands of type 'Date'. Operands must be reference or nullable types.
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.