This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.IO.Ports; | |
namespace AsyncExtensions { | |
public static class SerialPortExtensions | |
{ | |
/// <summary> | |
/// Read a line from the SerialPort asynchronously | |
/// </summary> | |
/// <param name="serialPort">The port to read data from</param> | |
/// <returns>A line read from the input</returns> |