【发布时间】:2008-11-29 19:22:23
【问题描述】:
1 Dim x as Integer? = Nothing
2 If x = Nothing Then
3 'this is what I think will happen
4 Else
5 'this is what really happens
6 End If
正确的写法是“如果 x 什么都没有”。
是否有 FXCop 规则对此进行检查?或者更好的是,有人可以告诉我如何编写我自己的吗?
乔纳森
【问题讨论】: