C# Класс CsDebugScript.InteractiveExecution

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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