private void InitializeIfNecessary()
 {
     if (currentOwnerInstance != this)
     {
         currentOwnerInstance = this;
         UnManagedStaticClass.Initialize(initParameters);
         UnManagedStaticClass.Settings = settings;
     }
 }
Esempio n. 2
0
 public MyWrapper(InitParameters p)
 {
     lock (lockRoot)
     {
         if (!initialized)
         {
             UnManagedStaticClass.Initialize(p);
             initialized = true;
         }
     }
 }
 static Test()
 {
     UnManagedStaticClass.Initialize();
     UnManagedStaticClass.Settings = ...;
 }
Esempio n. 4
0
 static MyWrapper()
 {
     UnManagedStaticClass.Initialize();
 }
 static Test()
 {
     UnManagedStaticClass.Initialize();
 }
Esempio n. 6
0
 static MyWrapper()
 {
     UnManagedStaticClass.Initialize();
     UnManagedStaticClass.Settings = ...;
 }