public void DiscardOutBuffer() { if (!isOpen) { throw new InvalidOperationException("DiscardOutBuffer - port not open"); } internalSerialStream.DiscardOutBuffer(); }