The VB.net equivalent of ..... (java)

Wakane

Member
Joined
Oct 9, 2002
Messages
8
In java theres this thing, for example :


public class JavaClass1
{
static
{
System.out.println("This function is called once, when the class is loaded in memory");
}
}




Does VB.net has got an equivalent "static {...}" like the above example java class?

Thank you
 
I dont know java, but there is nothing that is called when the class is loaded in to memory. You can use the constructor for when the class is instantiated.
 
Originally posted by divil
I dont know java, but there is nothing that is called when the class is loaded in to memory. You can use the constructor for when the class is instantiated.

Actually thats not what I meant, but thanks! I found an alternative way (a little bit inefficient, but it works) to give the same result.

Thanks
 
Back
Top