C# Class Microsoft.Scripting.Generation.Snippets

Exibir arquivo Open project: jschementi/iron Class Usage Examples

Public Methods

Method Description
CreateDynamicMethod ( string methodName, Type returnType, Type parameterTypes, bool isDebuggable ) : DynamicILGen
DefineDelegate ( string name, Type returnType ) : Type
DefineDelegateType ( string name ) : TypeBuilder
DefinePublicType ( string name, Type parent ) : TypeBuilder
DefineType ( string name, Type parent, bool preserveName, bool emitDebugSymbols ) : TypeGen
IsSnippetsAssembly ( Assembly asm ) : bool
SaveAndVerifyAssemblies ( ) : void
SetSaveAssemblies ( bool enable, string directory ) : void

Private Methods

Method Description
ConfigureSaveAssemblies ( bool enable, string directory ) : void
CreateDynamicMethod ( string name, Type returnType, Type parameterTypes ) : DynamicMethod
CreateNewAssembly ( string nameSuffix, bool emitSymbols ) : Microsoft.Scripting.Generation.AssemblyGen
GetAssembly ( bool emitSymbols ) : Microsoft.Scripting.Generation.AssemblyGen
GetMethodILDumpFile ( MethodBase method ) : string
GetOrCreateAssembly ( bool emitSymbols, Microsoft.Scripting.Generation.AssemblyGen &assembly ) : Microsoft.Scripting.Generation.AssemblyGen
RawCreateDynamicMethod ( string name, Type returnType, Type parameterTypes ) : DynamicMethod
SaveAssemblies ( ) : string[]
Snippets ( ) : System.Linq.Expressions

Method Details

CreateDynamicMethod() public method

public CreateDynamicMethod ( string methodName, Type returnType, Type parameterTypes, bool isDebuggable ) : DynamicILGen
methodName string
returnType System.Type
parameterTypes System.Type
isDebuggable bool
return DynamicILGen

DefineDelegate() public method

public DefineDelegate ( string name, Type returnType ) : Type
name string
returnType System.Type
return System.Type

DefineDelegateType() public method

public DefineDelegateType ( string name ) : TypeBuilder
name string
return System.Reflection.Emit.TypeBuilder

DefinePublicType() public method

public DefinePublicType ( string name, Type parent ) : TypeBuilder
name string
parent System.Type
return System.Reflection.Emit.TypeBuilder

DefineType() public method

public DefineType ( string name, Type parent, bool preserveName, bool emitDebugSymbols ) : TypeGen
name string
parent System.Type
preserveName bool
emitDebugSymbols bool
return TypeGen

IsSnippetsAssembly() public method

public IsSnippetsAssembly ( Assembly asm ) : bool
asm System.Reflection.Assembly
return bool

SaveAndVerifyAssemblies() public static method

public static SaveAndVerifyAssemblies ( ) : void
return void

SetSaveAssemblies() public static method

public static SetSaveAssemblies ( bool enable, string directory ) : void
enable bool
directory string
return void