To check if object is null we have such construction in C#:
if (object == null){
// TODO: ...
}
In VB it is different, it should be:
If object Is Nothing Then
' TODO: ...
End If
if (object == null){
// TODO: ...
}
In VB it is different, it should be:
If object Is Nothing Then
' TODO: ...
End If
Комментарии