C# 클래스 WikiFunctions.CustomModules.CustomModuleCompiler

파일 보기 프로젝트 열기: reedy/AutoWikiBrowser

보호된 프로퍼티들

프로퍼티 타입 설명
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