C# Class Microsoft.Scripting.Hosting.ScriptIO

Provides host-redirectable IO streams used by DLR languages for default IO.
Inheritance: System.MarshalByRefObject
Afficher le fichier Open project: jschementi/iron Class Usage Examples

Private Properties

Свойство Type Description
ScriptIO System

Méthodes publiques

Méthode 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

Méthode Description
ScriptIO ( SharedIO io ) : System

Method Details

InitializeLifetimeService() public méthode

public InitializeLifetimeService ( ) : object
Résultat object

RedirectToConsole() public méthode

public RedirectToConsole ( ) : void
Résultat void

SetErrorOutput() public méthode

public SetErrorOutput ( Stream stream, Encoding encoding ) : void
stream Stream
encoding System.Text.Encoding
Résultat void

SetErrorOutput() public méthode

public SetErrorOutput ( Stream stream, TextWriter writer ) : void
stream Stream
writer System.IO.TextWriter
Résultat void

SetInput() public méthode

public SetInput ( Stream stream, Encoding encoding ) : void
stream Stream
encoding System.Text.Encoding
Résultat void

SetInput() public méthode

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

SetOutput() public méthode

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.
Résultat void

SetOutput() public méthode

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
Résultat void