C# 클래스 NuGet.StreamExtensions

파일 보기 프로젝트 열기: monoman/NugetCracker

공개 메소드들

메소드 설명
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