public void Dispose() { if (_IsDisposed) { return; } _IsDisposed = true; var isSuccess = WinUsbApiCalls.WinUsb_Free(Handle); WindowsDeviceBase.HandleError(isSuccess, "Interface could not be disposed"); }
public void Dispose() { if (_IsDisposed) { return; } _IsDisposed = true; //This is a native resource, so the IDisposable pattern should probably be implemented... var isSuccess = WinUsbApiCalls.WinUsb_Free(Handle); WindowsDeviceBase.HandleError(isSuccess, "Interface could not be disposed"); }
public void Dispose() { var isSuccess = WinUsbApiCalls.WinUsb_Free(Handle); WindowsDeviceBase.HandleError(isSuccess, "Interface could not be disposed"); }