I am quite surprised that in C#:
int? a = null;
int? b = null;
intc = a == b; //c = true
While in VB:
Dim a As Integer? = Nothing
Dim b As Integer? = Nothing
if( a = b ) generates an exception because the condition a = b is apparently resolved to Nothing (instead of true in C#)
I suppose I can change my condition to: if( (a Is Nothing AndAlso b Is Nothing) OrElse a = b) but I find this ugly! Is there a more elegant way of writing this so simple condition?