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

Name Description
Dispose Releases all resources used by the Stream. (System.IO.Stream).
Dispose(bool) Releases the unmanaged resources used by the Stream and optionally releases the managed resources.