Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

BinaryReader.Dispose Method

Releases the resources used by the current instance of the BinaryReader class.

Namespace:  System.IO
Assembly:  mscorlib (in mscorlib.dll)

public void Dispose()

Implements

IDisposable.Dispose()

When you are finished using this instance of BinaryReader, call Dispose to release all resources used by this instance. You should eliminate further references to this BinaryReader instance so that the garbage collector can reclaim the memory of the instance instead of keeping it alive for finalization.

BinaryReader.Dispose() calls the BinaryReader.Dispose(Boolean) method, which contains the code to release managed and unmanaged resources.

Platform Notes

Silverlight for Windows Phone Silverlight for Windows Phone

This member is present to support the .NET Compact Framework infrastructure in Silverlight for Windows Phone, and it is not intended to be used in your application code.

Silverlight

Supported in: 5, 4

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

Show:
© 2017 Microsoft