diff options
author | Carlos Alberto Cortez <calberto.cortez@gmail.com> | 2006-02-22 14:25:34 +0300 |
---|---|---|
committer | Carlos Alberto Cortez <calberto.cortez@gmail.com> | 2006-02-22 14:25:34 +0300 |
commit | d97de9c00e0faf0c01672e902e82f4539919f4e3 (patch) | |
tree | 03c621b4dc91aa4448fc3bc0597bc94dd98ac12e /mcs/class/System/System.IO.Ports/SerialPort.cs | |
parent | eca45d6ce537b64420a875912d04e895beeb8d42 (diff) |
* SerialPort.cs:
* SerialPortStream.cs: Move SerialPortStream to a new file,
to have a better organization.
2006-02-21 Carlos Alberto Cortez <calberto.cortez@gmail.com>
svn path=/trunk/mcs/; revision=57152
Diffstat (limited to 'mcs/class/System/System.IO.Ports/SerialPort.cs')
-rw-r--r-- | mcs/class/System/System.IO.Ports/SerialPort.cs | 73 |
1 files changed, 0 insertions, 73 deletions
diff --git a/mcs/class/System/System.IO.Ports/SerialPort.cs b/mcs/class/System/System.IO.Ports/SerialPort.cs index f14e673f079..ca0035abc52 100644 --- a/mcs/class/System/System.IO.Ports/SerialPort.cs +++ b/mcs/class/System/System.IO.Ports/SerialPort.cs @@ -28,79 +28,6 @@ namespace System.IO.Ports int readTimeout = InfiniteTimeout; int writeTimeout = InfiniteTimeout; - private class SerialPortStream : Stream - { - SerialPort port; - - public SerialPortStream (SerialPort port) - { - this.port = port; - } - - public override bool CanRead - { - get { - return true; - } - } - - public override bool CanSeek - { - get { - return false; - } - } - - public override bool CanWrite - { - get { - return true; - } - } - - public override long Length - { - get { - return -1; - } - } - - public override long Position - { - get { - return -1; - } - set { - throw new InvalidOperationException (); - } - } - - public override void Flush () - { - throw new NotImplementedException (); - } - - public override int Read ([In,Out] byte[] buffer, int offset, int count) - { - return port.Read (buffer, offset, count); - } - - public override long Seek (long offset, SeekOrigin origin) - { - throw new InvalidOperationException (); - } - - public override void SetLength (long value) - { - throw new InvalidOperationException (); - } - - public override void Write (byte[] buffer, int offset, int count) - { - port.Write (buffer, offset, count); - } - } - public SerialPort () { throw new NotImplementedException (); |