StreamExtensions Class

Summary

Extension methods for use with System.IO.Stream.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Util
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["StreamExtensions"] class Type type-node

Syntax

public static class StreamExtensions

Methods

Name Value Summary
GetWriter(Stream, bool) StreamWriter
Creates a System.IO.StreamWriter for the specified stream. The biggest difference between this and creating a System.IO.StreamWriter directly is that the new System.IO.StreamWriter will default to leaving the underlying stream open on disposal. Remember to flush the returned writer after all data have been written.
static
GitHub