Skip to main content
BinaryWriterDispose Method

The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Releases the unmanaged resources used by the BinaryWriter and optionally releases the managed resources.

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

protected virtual void Dispose(
	bool disposing
virtual void Dispose(
	bool disposing
abstract Dispose : 
        disposing:bool -> unit
override Dispose : 
        disposing:bool -> unit
Protected Overridable Sub Dispose (
	disposing As Boolean



true to release both managed and unmanaged resources; false to release only unmanaged resources.

Universal Windows Platform
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top