Exemplo n.º 1
0
 /// <summary>
 /// Gets singleton instance of this class.
 /// The native extension is loaded when called for the first time.
 /// </summary>
 public static NativeExtension Get()
 {
     if (instance == null)
     {
         lock (staticLock)
         {
             if (instance == null) {
                 instance = new NativeExtension();
             }
         }
     }
     return instance;
 }
Exemplo n.º 2
0
 /// <summary>
 /// Gets singleton instance of this class.
 /// The native extension is loaded when called for the first time.
 /// </summary>
 public static NativeExtension Get()
 {
     if (instance == null)
     {
         lock (staticLock)
         {
             if (instance == null) {
                 instance = new NativeExtension();
             }
         }
     }
     return instance;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Gets singleton instance of this class.
 /// </summary>
 public static NativeMethods Get()
 {
     return(NativeExtension.Get().NativeMethods);
 }