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