sys\system\io\ports\SerialPort.cs (9)
44private const Parity defaultParity = Parity.None;
68private Parity parity = defaultParity;
365public Parity Parity
374if (value < Parity.None || value > Parity.Space)
611public SerialPort(string portName, int baudRate, Parity parity) : this (portName, baudRate, parity, defaultDataBits, defaultStopBits)
617public SerialPort(string portName, int baudRate, Parity parity, int dataBits) : this (portName, baudRate, parity, dataBits, defaultStopBits)
626public SerialPort(string portName, int baudRate, Parity parity, int dataBits, StopBits stopBits)
sys\system\io\ports\SerialStream.cs (8)
316internal Parity Parity
321Debug.Assert(!(value < Parity.None || value > Parity.Space), "An invalid value was passed to Parity");
335int parityFlag = (dcb.Parity == (byte) Parity.None) ? 0 : 1;
638internal SerialStream(string portName, int baudRate, Parity parity, int dataBits, StopBits stopBits, int readTimeout, int writeTimeout, Handshake handshake,
1263private void InitializeDCB(int baudRate, Parity parity, int dataBits, StopBits stopBits, bool discardNull)
1298SetDcbFlag(NativeMethods.FPARITY, ((parity == Parity.None) ? 0 : 1));
1315if (parity != Parity.None)