BinaryReader.Dispose Method

May 11, 2014

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.

Version Notes

Windows Phone

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

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft