C# Class Microsoft.Scripting.Hosting.ScriptIO

Provides host-redirectable IO streams used by DLR languages for default IO.
Inheritance: System.MarshalByRefObject
ファイルを表示 Open project: jschementi/iron Class Usage Examples

Private Properties

Property Type Description
ScriptIO System

Public Methods

Method Description
InitializeLifetimeService ( ) : object
RedirectToConsole ( ) : void
SetErrorOutput ( Stream stream, Encoding encoding ) : void
SetErrorOutput ( Stream stream, TextWriter writer ) : void
SetInput ( Stream stream, Encoding encoding ) : void
SetInput ( Stream stream, TextReader reader, Encoding encoding ) : void
SetOutput ( Stream stream, Encoding encoding ) : void

Used if the host stores the output as binary data.

SetOutput ( Stream stream, TextWriter writer ) : void

Used if the host handles both kinds of data (textual and binary) by itself.

Private Methods

Method Description
ScriptIO ( SharedIO io ) : System

Method Details

InitializeLifetimeService() public method

public InitializeLifetimeService ( ) : object
return object

RedirectToConsole() public method

public RedirectToConsole ( ) : void
return void

SetErrorOutput() public method

public SetErrorOutput ( Stream stream, Encoding encoding ) : void
stream Stream
encoding System.Text.Encoding
return void

SetErrorOutput() public method

public SetErrorOutput ( Stream stream, TextWriter writer ) : void
stream Stream
writer System.IO.TextWriter
return void

SetInput() public method

public SetInput ( Stream stream, Encoding encoding ) : void
stream Stream
encoding System.Text.Encoding
return void

SetInput() public method

public SetInput ( Stream stream, TextReader reader, Encoding encoding ) : void
stream Stream
reader TextReader
encoding System.Text.Encoding
return void

SetOutput() public method

Used if the host stores the output as binary data.
public SetOutput ( Stream stream, Encoding encoding ) : void
stream Stream Binary stream to write data to.
encoding System.Text.Encoding Encoding used to convert textual data written to the output by the script.
return void

SetOutput() public method

Used if the host handles both kinds of data (textual and binary) by itself.
public SetOutput ( Stream stream, TextWriter writer ) : void
stream Stream
writer System.IO.TextWriter
return void