C# Class NuGet.StreamExtensions

Afficher le fichier Open project: monoman/NugetCracker

Méthodes publiques

Méthode Description
AsStream ( this value ) : Stream
AsStream ( this value, Encoding encoding ) : Stream
ContentEquals ( this stream, Stream otherStream ) : bool
ReadAllBytes ( this stream ) : byte[]
ReadToEnd ( this stream ) : string
ToStreamFactory ( this stream ) : Func

Turns an existing stream into one that a stream factory that can be reopened.

Method Details

AsStream() public static méthode

public static AsStream ( this value ) : Stream
value this
Résultat Stream

AsStream() public static méthode

public static AsStream ( this value, Encoding encoding ) : Stream
value this
encoding System.Text.Encoding
Résultat Stream

ContentEquals() public static méthode

public static ContentEquals ( this stream, Stream otherStream ) : bool
stream this
otherStream Stream
Résultat bool

ReadAllBytes() public static méthode

public static ReadAllBytes ( this stream ) : byte[]
stream this
Résultat byte[]

ReadToEnd() public static méthode

public static ReadToEnd ( this stream ) : string
stream this
Résultat string

ToStreamFactory() public static méthode

Turns an existing stream into one that a stream factory that can be reopened.
public static ToStreamFactory ( this stream ) : Func
stream this
Résultat Func