Skip to content

NullIO Class ​

Definition ​

A null implementation of I/O operations that returns a constant value for reads and ignores writes.

c#
public sealed class NullIO : IIOReader, IIOWriter

View source

Constructors ​

NameDescription
NullIO(Byte)A null implementation of I/O operations that returns a constant value for reads and ignores writes.

Methods ​

NameDescription
Read(UInt16)Reads a byte from the specified I/O port.
Write(UInt16, Byte)Writes a byte to the specified I/O port. This implementation ignores the write operation.