Why can you assign Nothing to an Integer in VB.NET?

Posted by JoelFan on Stack Overflow See other posts from Stack Overflow or by JoelFan
Published on 2010-05-05T21:24:53Z Indexed on 2010/05/05 21:28 UTC
Read the original article Hit count: 225

Filed under:
|
|

Why am I allowed to say:

Dim x as Integer
x = Nothing

in VB.NET, but I can't say:

int x;
x = null;

in C# ?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET