C# 클래스 CsDebugScript.InteractiveExecution

파일 보기 프로젝트 열기: southpolenator/WinDbgCs 1 사용 예제들

공개 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

InteractiveExecution() 공개 메소드

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

Interpret() 공개 메소드

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

Run() 공개 메소드

Runs interactive scripting mode.
public Run ( ) : void
리턴 void