Beispiel #1
0
        public void Dispose()
        {
            if (_IsDisposed)
            {
                return;
            }
            _IsDisposed = true;

            var isSuccess = WinUsbApiCalls.WinUsb_Free(Handle);

            WindowsDeviceBase.HandleError(isSuccess, "Interface could not be disposed");
        }
Beispiel #2
0
        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");
        }
Beispiel #3
0
        public void Dispose()
        {
            var isSuccess = WinUsbApiCalls.WinUsb_Free(Handle);

            WindowsDeviceBase.HandleError(isSuccess, "Interface could not be disposed");
        }