C# Class WikiFunctions.CustomModules.CustomModuleCompiler

Afficher le fichier Open project: reedy/AutoWikiBrowser

Protected Properties

Свойство Type Description
Compiler System.CodeDom.Compiler.CodeDomProvider

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
Instantiate ( Assembly asm, string typeName ) : object
Instantiate ( Type type ) : object
LoadAssembly ( string path, string dependantAssembliesPrefix ) : Assembly

Private Methods

Méthode Description
AddToList ( List modules, Type type ) : void
CustomModuleCompiler ( ) : System
ResolveAssembly ( Object sender, ResolveEventArgs args ) : Assembly

Method Details

CanHandleLanguage() public méthode

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
Résultat bool

Compile() public méthode

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.
Résultat System.CodeDom.Compiler.CompilerResults

GetList() public static méthode

Returns the list of currently available compiler modules
public static GetList ( ) : WikiFunctions.CustomModules.CustomModuleCompiler[]
Résultat WikiFunctions.CustomModules.CustomModuleCompiler[]

Instantiate() protected static méthode

protected static Instantiate ( Assembly asm, string typeName ) : object
asm System.Reflection.Assembly
typeName string
Résultat object

Instantiate() protected static méthode

protected static Instantiate ( Type type ) : object
type System.Type
Résultat object

LoadAssembly() protected static méthode

protected static LoadAssembly ( string path, string dependantAssembliesPrefix ) : Assembly
path string
dependantAssembliesPrefix string
Résultat System.Reflection.Assembly

ToString() public méthode

Enforces that every class derived from this one will be properly displayed in a combo box.
public ToString ( ) : string
Résultat string

Property Details

Compiler protected_oe property

To be assigned in descendant class' constructor
protected CodeDomProvider,System.CodeDom.Compiler Compiler
Résultat System.CodeDom.Compiler.CodeDomProvider