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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top