Пример #1
0
 protected virtual void Dispose(bool bDisposing)
 {
     try
     {
         if (bDisposing && (this.m_oFile != null))
         {
             this.m_oFile.Close();
             this.m_oFile = null;
         }
         if (this.m_hHandle != IntPtr.Zero)
         {
             Win32Usb.CloseHandle(this.m_hHandle);
         }
     }
     catch (Exception exception)
     {
         Console.WriteLine(exception.ToString());
     }
 }