BinaryWriter Members (System.IO)

Switch View :
ScriptFree
BinaryWriter Members

Writes primitive types in binary to a stream and supports writing strings in a specific encoding.

The following tables list the members exposed by the BinaryWriter type.

Public Constructors

(see also Protected Constructors )
  Name Description
Public method Supported by the .NET Compact Framework Supported by the XNA Framework BinaryWriter Overloaded. Initializes a new instance of the BinaryWriter class that writes to a stream.
Top
Protected Constructors

  Name Description
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework BinaryWriter Overloaded. Initializes a new instance of the BinaryWriter class that writes to a stream.
Top
Public Fields

(see also Protected Fields )
  Name Description
Public field Static Supported by the .NET Compact Framework Supported by the XNA Framework Null Specifies a BinaryWriter with no backing store.
Top
Protected Fields

  Name Description
Protected field Supported by the .NET Compact Framework Supported by the XNA Framework OutStream Holds the underlying stream.
Top
Public Properties

  Name Description
Public property Supported by the .NET Compact Framework Supported by the XNA Framework BaseStream Gets the underlying stream of the BinaryWriter.
Top
Public Methods

(see also Protected Methods )
  Name Description
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Close Closes the current BinaryWriter and the underlying stream.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Equals  Overloaded. Determines whether two Object instances are equal. (inherited from Object)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Flush Clears all buffers for the current writer and causes any buffered data to be written to the underlying device.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetHashCode  Serves as a hash function for a particular type. (inherited from Object)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework GetType  Gets the Type of the current instance. (inherited from Object)
Public method Static Supported by the .NET Compact Framework ReferenceEquals  Determines whether the specified Object instances are the same instance. (inherited from Object)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Seek Sets the position within the current stream.
Public method Supported by the .NET Compact Framework Supported by the XNA Framework ToString  Returns a String that represents the current Object. (inherited from Object)
Public method Supported by the .NET Compact Framework Supported by the XNA Framework Write Overloaded. Writes a value to the current stream.
Top
Protected Methods

  Name Description
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Dispose Releases the unmanaged resources used by the BinaryWriter and optionally releases the managed resources.
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Finalize  Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework MemberwiseClone  Creates a shallow copy of the current Object. (inherited from Object)
Protected method Supported by the .NET Compact Framework Supported by the XNA Framework Write7BitEncodedInt Writes a 32-bit integer in a compressed format.
Top
Explicit Interface Implementations

  Name Description
Explicit interface implementation Method Supported by the .NET Compact Framework Supported by the XNA Framework System.IDisposable.Dispose  
Top
See Also