Method ReadUInt16
ReadUInt16()
Reads an object of type System.UInt16 from the current stream and advances the stream position. This method reads directly from the underlying stream.
Declaration
[CLSCompliant(false)]
public virtual ushort ReadUInt16()
Returns
Type | Description |
---|---|
System.UInt16 | object read from the stream |
ReadUInt16(UInt16)
Reads an object of type System.UInt16 from the current stream and advances the stream position. This method reads directly from the underlying stream.
Declaration
[CLSCompliant(false)]
public virtual ushort ReadUInt16(ushort defaultValue)
Parameters
Type | Name | Description |
---|---|---|
System.UInt16 | defaultValue | Default value to be used for deserializing old version of the object |
Returns
Type | Description |
---|---|
System.UInt16 | object read from the stream |