C# Класс NuGet.StreamExtensions

Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Описание методов

AsStream() публичный статический Метод

public static AsStream ( this value ) : Stream
value this
Результат Stream

AsStream() публичный статический Метод

public static AsStream ( this value, Encoding encoding ) : Stream
value this
encoding System.Text.Encoding
Результат Stream

ContentEquals() публичный статический Метод

public static ContentEquals ( this stream, Stream otherStream ) : bool
stream this
otherStream Stream
Результат bool

ReadAllBytes() публичный статический Метод

public static ReadAllBytes ( this stream ) : byte[]
stream this
Результат byte[]

ReadToEnd() публичный статический Метод

public static ReadToEnd ( this stream ) : string
stream this
Результат string

ToStreamFactory() публичный статический Метод

Turns an existing stream into one that a stream factory that can be reopened.
public static ToStreamFactory ( this stream ) : Func
stream this
Результат Func