public override int GetHashCode()
 {
     return
         (PortName.GetHashCode()
          ^
          BaudRate.GetHashCode()
          ^
          DataBits.GetHashCode()
          ^
          Parity.GetHashCode()
          ^
          StopBits.GetHashCode());
 }