Mono Class Library: System.IO.MemoryStream Overview | MembersSystem.IO.MemoryStream.Close Method |
Closes the current System.IO.MemoryStream instance. [Edit]
|
The stream will not support reading or writing after this method is invoked. Following a call to MemoryStream.Close , operations on the stream can raise an exception.
The buffer of a closed System.IO.MemoryStream is still available, and the MemoryStream.ToArray and MemoryStream.GetBuffer methods can be called successfully.
Note: This method overrides Stream.Close .[Edit]
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0