/// <summary> /// Raises the <see cref="LineReceived" /> event. /// </summary> /// <param name="line">The received line of data.</param> protected void RaiseLineReceived(string line) { SerialLineReceivedEventHandler handler = this.lineReceived; if (handler != null) { handler(this, line); } }
protected void RaiseLineReceived(string line) { SerialLineReceivedEventHandler lineReceived = this.lineReceived; if (lineReceived != null) { lineReceived(this, line); } }