[]
Provides extension methods for working with streams.
public static class StreamExtension
Name | Description |
---|---|
MakeUndisposable(Stream) | Creates a wrapper around the specified stream that prevents the Dispose method from being called. |
ReadToEnd(Stream) | Reads the stream to the end and returns the content as a string. |
ToArray(Stream) | Converts the specified stream to a byte array. |