C# Class RestSharp.Extensions.MiscExtensions

Datei anzeigen Open project: Saambaa/RestSharp

Public Methods

Method Description
AsString ( this token ) : string

Gets string value from JToken

CopyTo ( this input, Stream output ) : void

Copies bytes from one stream to another

ReadAsBytes ( this input ) : byte[]

Read a stream into a byte array

SaveAs ( this input, string path ) : void

Save a byte array to a file

Method Details

AsString() public static method

Gets string value from JToken
public static AsString ( this token ) : string
token this
return string

CopyTo() public static method

Copies bytes from one stream to another
public static CopyTo ( this input, Stream output ) : void
input this The input stream.
output Stream The output stream.
return void

ReadAsBytes() public static method

Read a stream into a byte array
public static ReadAsBytes ( this input ) : byte[]
input this Stream to read
return byte[]

SaveAs() public static method

Save a byte array to a file
public static SaveAs ( this input, string path ) : void
input this Bytes to save
path string Full path to save file to
return void