- A static constructor is called automatically to initialize the class<http://msdn.microsoft.com/en-us/library/0b0thckt%28VS.80%29.aspx>before the first instance is created or any static members are referenced. -
A static constructor cannot be called directly. - The user has no control on when the static constructor is executed in the program. So just assume that the sessionfactory is constructed. On Wed, Feb 4, 2009 at 2:12 PM, James Gregory <[email protected]>wrote: > I don't do an explicit call, just whatever hits the class first will do it. > > > On Wed, Feb 4, 2009 at 7:09 PM, CCL <[email protected]> wrote: > >> >> OK, >> >> I use basically the same pattern - a singleton class etc. But - the >> real qustion is where from do you call to initialize the class? >> >> Re, >> CC >> >> > > > > -- Robin Nadeau, B.Eng. Software Developer --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
