Hi guys...
Are there "Shared" Classes in VB.NET 2.0 to match C#s "Static" classes? Or did they not bother in VB.NET because VB.NET has Modules?
The thing is though, a Static Class (enforcing that there are no instance members) is not quite the same as a Module, which is essentially a Static class plus an implicit global imports statement...
Is the solution, then, that I have to continue creating a Private New() contructor for VB.NET classes that I wish to enforce as Static? Using the Shared keyword in front of a Class definition does not seem to be accepted by the compiler.
Anyway, Im guessing that this is in fact the "lay of the land", but I was wondering if anyone else had some thoughts on this...
Thanks in advance!
,
Mike
Are there "Shared" Classes in VB.NET 2.0 to match C#s "Static" classes? Or did they not bother in VB.NET because VB.NET has Modules?
The thing is though, a Static Class (enforcing that there are no instance members) is not quite the same as a Module, which is essentially a Static class plus an implicit global imports statement...
Is the solution, then, that I have to continue creating a Private New() contructor for VB.NET classes that I wish to enforce as Static? Using the Shared keyword in front of a Class definition does not seem to be accepted by the compiler.
Anyway, Im guessing that this is in fact the "lay of the land", but I was wondering if anyone else had some thoughts on this...
Thanks in advance!

Mike