C# Class CsDebugScript.InteractiveExecution

Mostra file Open project: southpolenator/WinDbgCs Class Usage Examples

Public Methods

Method Description
InteractiveExecution ( ) : System

Initializes a new instance of the InteractiveExecution class.

Interpret ( string code, string prompt = "" ) : void

Interprets C# code.

Run ( ) : void

Runs interactive scripting mode.

Private Methods

Method Description
Count ( string str, string find ) : int

Counts the number of occurrences in the specified string.

Execute ( string code ) : void

Executes the specified code.

ExtractImportedCode ( Script script, string previousImportedCode ) : string

Extracts the imported code (functions and classes) from the specified script.

FixImportedCode ( string importedCode ) : string
GenerateCode ( string code, IEnumerable usings, string importedCode ) : string
GetCodeName ( Type type ) : string
GetScriptHelperCode ( string &scriptStart, string &scriptEnd ) : IEnumerable
IsCompleteSubmission ( string text ) : bool
ReadCommand ( string prompt ) : string

Reads the command from the user.

UnsafeInterpret ( string code ) : void

Interprets C# code, but without error handling.

UpdateReferences ( Script script, HashSet references ) : void

Updates the references from the specified script.

UpdateUsings ( Script script, HashSet usings ) : void

Updates the list of using commands from the specified script.

Method Details

InteractiveExecution() public method

Initializes a new instance of the InteractiveExecution class.
public InteractiveExecution ( ) : System
return System

Interpret() public method

Interprets C# code.
public Interpret ( string code, string prompt = "" ) : void
code string The C# code.
prompt string The prompt.
return void

Run() public method

Runs interactive scripting mode.
public Run ( ) : void
return void