VB counterpart to C# static constructors?

  • Thread starter Thread starter Siegfried Heintze
  • Start date Start date
S

Siegfried Heintze

Can one declare static constructors in VB like one can in C#? In C#, static
constructors execute once before any instances have been created.
Thanks,
Siegfried
 
in a class:

Shared Sub New()


in a Module:

Sub New()


Note: Modules are the equivalent of a Shared (aka static) Class.
 
Back
Top