C# Class Ninject.Injection.DynamicMethodInjectorFactory

Creates injectors for members via DynamicMethods.
Inheritance: Ninject.Components.NinjectComponent, IInjectorFactory
ファイルを表示 Open project: ninject/Ninject Class Usage Examples

Public Methods

Method Description
Create ( ConstructorInfo constructor ) : ConstructorInjector

Gets or creates an injector for the specified constructor.

Create ( MethodInfo method ) : MethodInjector

Gets or creates an injector for the specified method.

Create ( PropertyInfo property ) : PropertyInjector

Gets or creates an injector for the specified property.

Private Methods

Method Description
EmitLoadMethodArguments ( ILGenerator il, MethodBase targetMethod ) : void
EmitMethodCall ( ILGenerator il, MethodInfo method ) : void
EmitUnboxOrCast ( ILGenerator il, Type type ) : void
GetAnonymousMethodName ( ) : string

Method Details

Create() public method

Gets or creates an injector for the specified constructor.
public Create ( ConstructorInfo constructor ) : ConstructorInjector
constructor System.Reflection.ConstructorInfo The constructor.
return ConstructorInjector

Create() public method

Gets or creates an injector for the specified method.
public Create ( MethodInfo method ) : MethodInjector
method System.Reflection.MethodInfo The method.
return MethodInjector

Create() public method

Gets or creates an injector for the specified property.
public Create ( PropertyInfo property ) : PropertyInjector
property System.Reflection.PropertyInfo The property.
return PropertyInjector