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