X13.Periphery.MsDevice.MsGSerial.Dispose C# (CSharp) Method

Dispose() private method

private Dispose ( ) : void
return void
      private void Dispose() {
        try {
          if(_port!=null && _port.IsOpen) {
            _port.Close();
          }
        }
        catch(Exception) {
        }
        _port=null;
        _gates.Remove(this);
      }
      #endregion instance