Exemple #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;
 }
Exemple #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;
 }
Exemple #3
0
 /// <summary>
 /// Gets singleton instance of this class.
 /// </summary>
 public static NativeMethods Get()
 {
     return(NativeExtension.Get().NativeMethods);
 }