C# Class Yea.DataTypes.ExtensionMethods.StreamExtensions

Extension methods for Streams
Datei anzeigen Open project: OxPatient/Rule-Engine

Public Methods

Method Description
ReadAll ( this input, Encoding encodingUsing = null ) : string

Takes all of the data in the stream and returns it as a string

ReadAllBinary ( this input ) : byte[]

Takes all of the data in the stream and returns it as an array of bytes

Method Details

ReadAll() public static method

Takes all of the data in the stream and returns it as a string
public static ReadAll ( this input, Encoding encodingUsing = null ) : string
input this Input stream
encodingUsing System.Text.Encoding Encoding that the string should be in (defaults to UTF8)
return string

ReadAllBinary() public static method

Takes all of the data in the stream and returns it as an array of bytes
public static ReadAllBinary ( this input ) : byte[]
input this Input stream
return byte[]