BinaryWriter

BinaryWriter


Provides methods to write typed information to a stream.


Implements:

IObject 

Public:

Properties:

NameDescription
 BaseStream (get) Returns the underlying stream this writer is writing to.  

Methods:

NameDescription
 CloseWriter Closes the writer, flushing any data.  
 Equals Returns a boolean indicating if the value and this object instance are the same instance.  
 Flush Tells the underlying stream to store its data to its repository.  
 GetHashCode Returns a pseudo-unique number identifying this instance.  
 SeekPosition Sets the underlying streams current position.  
 ToString Returns a string representation of this object instance.  
 WriteChar Writes a character to the underlying stream.  
 WriteValue Writes the binary representation of a datatype to the underlying stream.  

Remarks

The data types that are written to the stream are written in their binary form. The values are written as they are represented in memory. For example, as data type of vbLong is written as 4 bytes, regardless of the actual value of the vbLong variable.

See Also

Project CorLib Overview

Class BinaryWriter Overview

Constructors

BinaryReader