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
파일 보기 프로젝트 열기: praeclarum/runcs

공개 프로퍼티들

프로퍼티 타입 설명
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