Пример #1
0
        public void Dispose()
        {
            if (_IsDisposed)
            {
                return;
            }
            _IsDisposed = true;

            var isSuccess = WinUsbApiCalls.WinUsb_Free(Handle);

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

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