port.Settings.BaudRate = Convert.ChangeType(BaudRates.CBR_2400, TypeCode.UInt32, provider)
port.Settings.Parity = Convert.ChangeType(Parity.even, TypeCode.UInt32, provider)
port.Settings.StopBits = Convert.ChangeType(StopBits.two, TypeCode.UInt32, provider)
port.Settings.ByteSize =...