C# Class DataWF.Common.EmitInvoker

EmitInvoker. Dynamic method + delegate container for System.Reflection property, method and constru EmitInvoker. Dynamic method + delegate container for System.Reflection property, method and constructor.
显示文件 Open project: alexandrvslv/datawf Class Usage Examples

Public Methods

Method Description
CreateObject ( Type type, Array ctypes, Array cparams, bool cache ) : object
CreateObject ( Type type, bool cache = true ) : object
CreateObject ( bool cache = true ) : T
DeclareLocal ( ILGenerator il, Array ps, int index ) : LocalBuilder[]
DeleteCache ( ) : void
DeleteCache ( MemberInfo info ) : void
DeleteCache ( Type type ) : void
EmitBoxIfNeeded ( ILGenerator il, Type type ) : void
EmitCastToReference ( ILGenerator il, Type type ) : void
EmitFastInt ( ILGenerator il, int value ) : void
GetMethodName ( MethodInfo info ) : string
GetValue ( MemberInfo info, object item ) : object
GetValue ( MemberInfo info, object item, object index ) : object
GetValue ( Type type, string name, object item ) : object
Initialize ( ConstructorInfo info, bool cache = true ) : DataWF.Common.EmitConstructor
Initialize ( Type type, Array param, bool cache = true ) : DataWF.Common.EmitConstructor
Initialize ( MemberInfo info, bool cache, object index = null ) : IInvoker
Initialize ( MemberInfo info, object index = null ) : IInvoker
Initialize ( Type type, string property ) : IInvoker
Initialize ( string property ) : V>.IInvoker
Initialize ( string property ) : IInvoker
Invoke ( MethodInfo info, object item ) : object
Invoke ( Type type, string name, object item ) : object
RegisterInvoker ( DataWF.Common.InvokerAttribute invoker ) : void
RegisterInvoker ( MemberInfo memberInfo, IInvoker invoker ) : void
RegisterInvoker ( Type type, string memberName, IInvoker invoker ) : void
SetValue ( MemberInfo info, object item, object value ) : void
SetValue ( MemberInfo info, object item, object value, object index ) : void
SetValue ( Type type, string name, object item, object value ) : void

Private Methods

Method Description
CacheInvokers ( DataWF.Common.MetadataToken token, IInvoker invoker, MemberInfo info ) : IInvoker
EmitInvoker ( ) : System

Method Details

CreateObject() public static method

public static CreateObject ( Type type, Array ctypes, Array cparams, bool cache ) : object
type Type
ctypes Array
cparams Array
cache bool
return object

CreateObject() public static method

public static CreateObject ( Type type, bool cache = true ) : object
type Type
cache bool
return object

CreateObject() public static method

public static CreateObject ( bool cache = true ) : T
cache bool
return T

DeclareLocal() public static method

public static DeclareLocal ( ILGenerator il, Array ps, int index ) : LocalBuilder[]
il ILGenerator
ps Array
index int
return LocalBuilder[]

DeleteCache() public static method

public static DeleteCache ( ) : void
return void

DeleteCache() public static method

public static DeleteCache ( MemberInfo info ) : void
info MemberInfo
return void

DeleteCache() public static method

public static DeleteCache ( Type type ) : void
type Type
return void

EmitBoxIfNeeded() public static method

public static EmitBoxIfNeeded ( ILGenerator il, Type type ) : void
il ILGenerator
type System.Type
return void

EmitCastToReference() public static method

public static EmitCastToReference ( ILGenerator il, Type type ) : void
il ILGenerator
type System.Type
return void

EmitFastInt() public static method

public static EmitFastInt ( ILGenerator il, int value ) : void
il ILGenerator
value int
return void

GetMethodName() public static method

public static GetMethodName ( MethodInfo info ) : string
info MethodInfo
return string

GetValue() public static method

public static GetValue ( MemberInfo info, object item ) : object
info MemberInfo
item object
return object

GetValue() public static method

public static GetValue ( MemberInfo info, object item, object index ) : object
info MemberInfo
item object
index object
return object

GetValue() public static method

public static GetValue ( Type type, string name, object item ) : object
type Type
name string
item object
return object

Initialize() public static method

public static Initialize ( ConstructorInfo info, bool cache = true ) : DataWF.Common.EmitConstructor
info ConstructorInfo
cache bool
return DataWF.Common.EmitConstructor

Initialize() public static method

public static Initialize ( Type type, Array param, bool cache = true ) : DataWF.Common.EmitConstructor
type Type
param Array
cache bool
return DataWF.Common.EmitConstructor

Initialize() public static method

public static Initialize ( MemberInfo info, bool cache, object index = null ) : IInvoker
info MemberInfo
cache bool
index object
return IInvoker

Initialize() public static method

public static Initialize ( MemberInfo info, object index = null ) : IInvoker
info MemberInfo
index object
return IInvoker

Initialize() public static method

public static Initialize ( Type type, string property ) : IInvoker
type Type
property string
return IInvoker

Initialize() public static method

public static Initialize ( string property ) : V>.IInvoker
property string
return V>.IInvoker

Initialize() public static method

public static Initialize ( string property ) : IInvoker
property string
return IInvoker

Invoke() public static method

public static Invoke ( MethodInfo info, object item ) : object
info MethodInfo
item object
return object

Invoke() public static method

public static Invoke ( Type type, string name, object item ) : object
type Type
name string
item object
return object

RegisterInvoker() public static method

public static RegisterInvoker ( DataWF.Common.InvokerAttribute invoker ) : void
invoker DataWF.Common.InvokerAttribute
return void

RegisterInvoker() public static method

public static RegisterInvoker ( MemberInfo memberInfo, IInvoker invoker ) : void
memberInfo MemberInfo
invoker IInvoker
return void

RegisterInvoker() public static method

public static RegisterInvoker ( Type type, string memberName, IInvoker invoker ) : void
type Type
memberName string
invoker IInvoker
return void

SetValue() public static method

public static SetValue ( MemberInfo info, object item, object value ) : void
info MemberInfo
item object
value object
return void

SetValue() public static method

public static SetValue ( MemberInfo info, object item, object value, object index ) : void
info MemberInfo
item object
value object
index object
return void

SetValue() public static method

public static SetValue ( Type type, string name, object item, object value ) : void
type Type
name string
item object
value object
return void