C# Класс WikiFunctions.CustomModules.CustomModuleCompiler

Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
Compiler System.CodeDom.Compiler.CodeDomProvider

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

Метод Описание
CanHandleLanguage ( string language ) : bool

This function checks if the current compiler can compile sources in a given language. By default, the language should match the current compiler's language name exactly, but descendants can override it so that, for example, C# 4.0 compiler could accept C# 2.0 cources.

Compile ( string sourceCode, CompilerParameters parameters ) : CompilerResults

Compiles given source code

GetList ( ) : WikiFunctions.CustomModules.CustomModuleCompiler[]

Returns the list of currently available compiler modules

ToString ( ) : string

Enforces that every class derived from this one will be properly displayed in a combo box.

Защищенные методы

Метод Описание
Instantiate ( Assembly asm, string typeName ) : object
Instantiate ( Type type ) : object
LoadAssembly ( string path, string dependantAssembliesPrefix ) : Assembly

Приватные методы

Метод Описание
AddToList ( List modules, Type type ) : void
CustomModuleCompiler ( ) : System
ResolveAssembly ( Object sender, ResolveEventArgs args ) : Assembly

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

CanHandleLanguage() публичный Метод

This function checks if the current compiler can compile sources in a given language. By default, the language should match the current compiler's language name exactly, but descendants can override it so that, for example, C# 4.0 compiler could accept C# 2.0 cources.
public CanHandleLanguage ( string language ) : bool
language string Language name to check
Результат bool

Compile() публичный Метод

Compiles given source code
public Compile ( string sourceCode, CompilerParameters parameters ) : CompilerResults
sourceCode string Source code to compile. It will be automatically wrapped between /// CodeStart and CodeEnd.
parameters System.CodeDom.Compiler.CompilerParameters Compilation options.
Результат System.CodeDom.Compiler.CompilerResults

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

Returns the list of currently available compiler modules
public static GetList ( ) : WikiFunctions.CustomModules.CustomModuleCompiler[]
Результат WikiFunctions.CustomModules.CustomModuleCompiler[]

Instantiate() защищенный статический Метод

protected static Instantiate ( Assembly asm, string typeName ) : object
asm System.Reflection.Assembly
typeName string
Результат object

Instantiate() защищенный статический Метод

protected static Instantiate ( Type type ) : object
type System.Type
Результат object

LoadAssembly() защищенный статический Метод

protected static LoadAssembly ( string path, string dependantAssembliesPrefix ) : Assembly
path string
dependantAssembliesPrefix string
Результат System.Reflection.Assembly

ToString() публичный Метод

Enforces that every class derived from this one will be properly displayed in a combo box.
public ToString ( ) : string
Результат string

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

Compiler защищенное свойство

To be assigned in descendant class' constructor
protected CodeDomProvider,System.CodeDom.Compiler Compiler
Результат System.CodeDom.Compiler.CodeDomProvider