public Proxy(string path) { _PlatformID = Environment.OSVersion.Platform; if (_PlatformID == PlatformID.Unix) { _Invoke = new SoInvoke(path); } else { _Invoke = new DllInvoke(path); } }
protected virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { // Free other state (managed objects). } // Free your own state (unmanaged objects). // Set large fields to null. if (_Invoke != null) _Invoke.Dispose(); _Invoke = null; _XRequest = null; disposed = true; } //base.Dispose(disposing); }
protected virtual void Dispose(bool disposing) { if (!disposed) { if (disposing) { // Free other state (managed objects). } // Free your own state (unmanaged objects). // Set large fields to null. if (_Invoke != null) { _Invoke.Dispose(); } _Invoke = null; _XRequest = null; disposed = true; } //base.Dispose(disposing); }