C# 클래스 Yea.DataTypes.ExtensionMethods.StreamExtensions

Extension methods for Streams
파일 보기 프로젝트 열기: OxPatient/Rule-Engine

공개 메소드들

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

메소드 상세

ReadAll() 공개 정적인 메소드

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)
리턴 string

ReadAllBinary() 공개 정적인 메소드

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
리턴 byte[]