Loading files
a4519e7a0This file is pinned to the selected release. Download the original to open it in your design tool.
namespace System.IO.Ports;
public static class SerialPortExtensions
{
/// <summary>
/// Writes a single character to the serial port.
/// </summary>
/// <param name="character">A character to write on the serial port.</param>
public static void Write(this SerialPort serialPort, char character) => serialPort.Write(new[] { character }, 0, 1);
}