C# Class PRI.ProductivityExtensions.SerialPortExtensions.SerialPortable

Class that contains extension methods that extend SerialPort
Datei anzeigen Open project: peteraritchie/ProductivityExtensions

Public Methods

Method Description
Read ( this serialport, Byte buffer ) : Int32

Extends Read so that buffer offset of 0 and call to Array.Length are not needed. serialport.Read(buffer);

Read ( this serialport, Char buffer ) : Int32

Extends Read so that buffer offset of 0 and call to Array.Length are not needed. serialport.Read(buffer);

Write ( this serialport, Byte buffer ) : void

Extends Write so that buffer offset of 0 and call to Array.Length are not needed. serialport.Write(buffer);

Write ( this serialport, Char buffer ) : void

Extends Write so that buffer offset of 0 and call to Array.Length are not needed. serialport.Write(buffer);

Method Details

Read() public static method

Extends Read so that buffer offset of 0 and call to Array.Length are not needed. serialport.Read(buffer);
public static Read ( this serialport, Byte buffer ) : Int32
serialport this
buffer Byte
return System.Int32

Read() public static method

Extends Read so that buffer offset of 0 and call to Array.Length are not needed. serialport.Read(buffer);
public static Read ( this serialport, Char buffer ) : Int32
serialport this
buffer Char
return System.Int32

Write() public static method

Extends Write so that buffer offset of 0 and call to Array.Length are not needed. serialport.Write(buffer);
public static Write ( this serialport, Byte buffer ) : void
serialport this
buffer Byte
return void

Write() public static method

Extends Write so that buffer offset of 0 and call to Array.Length are not needed. serialport.Write(buffer);
public static Write ( this serialport, Char buffer ) : void
serialport this
buffer Char
return void