コード例 #1
0
ファイル: HIDDevice.cs プロジェクト: nikkiportas/H109Tools10
 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());
     }
 }