[mono-vb] Why are Modules in VB runtime declared as Classes?

Kornél Pál kornelpal at gmail.com
Sat Aug 26 06:59:35 EDT 2006


Hi,

Currently all modules in VB runtime are declared as

    <StandardModule()> _
    Public NotInheritable Class <name>

while they could be declared as

    Public Module <name>

Also note that Classes have constructors while Modules not. (Modules are 
much like static classes in C# but members of Modules have global scope.)

Is there any reason to declare Modules as Classes?

Kornél 



More information about the Mono-vb mailing list