namespace System.IO.Ports { public static class SerialPortExtensions { /// /// Writes a single character to the serial port. /// /// A character to write on the serial port. public static void Write(this SerialPort serialPort, char character) { serialPort.Write(new[] { character }, 0, 1); } } }