protected virtual void Dispose(bool disposing) { if (disposing) { // Clean up managed resources lock (this) { if (_winUsbDevice != null) { _winUsbDevice.Dispose(); } } } }
const byte DataPipe = 0x01; // OUT 1 public void Dispose() { if (BaseDevice != null) { BaseDevice.Dispose(); BaseDevice = null; } GC.SuppressFinalize(this); }