public void Write(Byte val) {
if (this._isDisposed) {
throw new ObjectDisposedException("Rs232SerialPort");
}
if (!this.IsOpen) {
throw new InvalidOperationException("Cannot send char to a closed port.");
}
UnsafeNativeMethods.serialPutChar(this._id, val);
}