I have a constructor to connect to the serial port of the type:
PortConx = new SerialPort(puerto);
And I define its parameters in the following way through a textbox:
PortConx.Parity = Parity.Even; PortConx.StopBits = StopBits.Two; PortConx.DataBits = Convert.ToInt32(textBoxDB.Text);
The fact is that, for parity, I can not pass it a string type variable because the data it asks for is of type
How could I convert it to that type of data?