I am rewriting a C# class in VB.NET. The C# class has a static constructor in it:
static Class()
{
...
}
which, through the call stack, I found is called by the main window's InitializeComponent() method. Everywhere I've looked has told me that the corresponding static constructor in VB.NET is just:
Shared Sub New()
...
End Sub
But this method is never invoked. Am I creating my VB.NET static constructor right? Is it likely something else that has nothing to do with my static constructor?
The static constructor is triggered by the first of the following events to occur within an application domain.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With