C# Класс Mono.CSharp.InteractiveBase

The default base class for every interaction line
The expressions and statements behave as if they were a static method of this class. The InteractiveBase class contains a number of useful methods, but can be overwritten by setting the InteractiveBaseType property in the Evaluator
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ContinuationPrompt string
Error System.IO.TextWriter
Evaluator Evaluator
Output System.IO.TextWriter
Prompt string
QuitRequested bool

Открытые методы

Метод Описание
Describe ( object x ) : string

Describes an object or a type.

This method will show a textual representation of the object's type. If the object is a System.Type it renders the type directly, otherwise it renders the type returned by invoking GetType on the object.

LoadAssembly ( string assembly ) : void

Loads the assembly

Loads the specified assembly and makes its types available to the evaluator. This is equivalent to passing the -pkg: command line flag to the C# compiler on the command line.

LoadPackage ( string pkg ) : void

Loads the assemblies from a package

Loads the assemblies from a package. This is equivalent to passing the -pkg: command line flag to the C# compiler on the command line.

ShowUsing ( ) : void

Displays the using statements in effect at this point.

ShowVars ( ) : void

Shows all the variables defined so far.

Time ( System.Action a ) : System.TimeSpan

Times the execution of the given delegate

print ( string obj ) : void

Описание методов

Describe() публичный статический Метод

Describes an object or a type.
This method will show a textual representation of the object's type. If the object is a System.Type it renders the type directly, otherwise it renders the type returned by invoking GetType on the object.
public static Describe ( object x ) : string
x object
Результат string

LoadAssembly() публичный статический Метод

Loads the assembly
Loads the specified assembly and makes its types available to the evaluator. This is equivalent to passing the -pkg: command line flag to the C# compiler on the command line.
public static LoadAssembly ( string assembly ) : void
assembly string
Результат void

LoadPackage() публичный статический Метод

Loads the assemblies from a package
Loads the assemblies from a package. This is equivalent to passing the -pkg: command line flag to the C# compiler on the command line.
public static LoadPackage ( string pkg ) : void
pkg string
Результат void

ShowUsing() публичный статический Метод

Displays the using statements in effect at this point.
public static ShowUsing ( ) : void
Результат void

ShowVars() публичный статический Метод

Shows all the variables defined so far.
public static ShowVars ( ) : void
Результат void

Time() публичный статический Метод

Times the execution of the given delegate
public static Time ( System.Action a ) : System.TimeSpan
a System.Action
Результат System.TimeSpan

print() публичный статический Метод

public static print ( string obj ) : void
obj string
Результат void

Описание свойств

ContinuationPrompt публичное статическое свойство

The secondary prompt used for interactive use (used when an expression is incomplete).
public static string ContinuationPrompt
Результат string

Error публичное статическое свойство

Determines where the standard error of methods in this class will go.
public static TextWriter,System.IO Error
Результат System.IO.TextWriter

Evaluator публичное статическое свойство

public static Evaluator,Mono.CSharp Evaluator
Результат Evaluator

Output публичное статическое свойство

Determines where the standard output of methods in this class will go.
public static TextWriter,System.IO Output
Результат System.IO.TextWriter

Prompt публичное статическое свойство

The primary prompt used for interactive use.
public static string Prompt
Результат string

QuitRequested публичное статическое свойство

Used to signal that the user has invoked the `quit' statement.
public static bool QuitRequested
Результат bool