C# Class Yea.DataTypes.ExtensionMethods.StreamExtensions

Extension methods for Streams
Afficher le fichier Open project: OxPatient/Rule-Engine

Méthodes publiques

Méthode 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 méthode

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)
Résultat string

ReadAllBinary() public static méthode

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
Résultat byte[]