C# Class NCop.Aspects.Weaving.AspectArgsMapperWeaver

Inheritance: ITypeWeaver, IAspectArgsMapper
显示文件 Open project: sagifogel/NCop Class Usage Examples

Public Methods

Method Description
GetActionMappingArgs ( int argumentCount ) : MethodInfo
GetFunctionMappingArgs ( int argumentCount ) : MethodInfo
GetPropertyMappingArgs ( Type fromType, Type toType ) : MethodInfo
Weave ( ) : void

Private Methods

Method Description
BuildMethod ( TypeBuilder typeBuilder, int numberOfArgs, Type>.Func resolveArgsFn, bool hasReturnType ) : void
BuildNonGenericTypeMethod ( TypeBuilder typeBuilder, int numberOfArgs, Type>.Func resolveArgsFn ) : void
BuildPropertyMappingMethods ( TypeBuilder typeBuilder, Type fromArgType, Type propertyArgType, string fromArgTypePropertyName ) : void
ResolveIActionArgsType ( int count ) : Type
ResolveIFunctionArgsType ( int count ) : Type
WeavePropertyMappingMethods ( ) : void

Method Details

GetActionMappingArgs() public method

public GetActionMappingArgs ( int argumentCount ) : MethodInfo
argumentCount int
return System.Reflection.MethodInfo

GetFunctionMappingArgs() public method

public GetFunctionMappingArgs ( int argumentCount ) : MethodInfo
argumentCount int
return System.Reflection.MethodInfo

GetPropertyMappingArgs() public method

public GetPropertyMappingArgs ( Type fromType, Type toType ) : MethodInfo
fromType System.Type
toType System.Type
return System.Reflection.MethodInfo

Weave() public method

public Weave ( ) : void
return void