1
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
編寫該函數的正確方法是「If x Is Nothing」。當X是一個可爲空的整數時,FXCop規則爲「If X = Nothing」
是否有FXCop規則檢查此?或者更好的是,有人可以告訴我如何寫我自己的?
喬納森