Hey,
When declaring an object like that (using
VB.NET syntax), the parameters are ripped off because
VB.NET doesn't care about those being there (syntax-wise). C# uses them because of its syntax:
User objUser = New User();
For C#, they are required like this, but because you are declaring a new type in
VB.NET, it doesn't like them (except when declaring parameters for the new constructor). I think it's because it is regarding it as a type instead of a new class definition, but I don't really know if that's it.
It knows because it is a variable declaration (Dim statement). Those Microsoft folks are pretty smart, whether you believe that or not. :D
Brian