C# Class NProxy.Core.ProxyTypeBuilder

Represents a proxy type builder.
Inheritance: ITypeBuilder
ファイルを表示 Open project: mtamme/NProxy

Public Methods

Method Description
AddCustomAttribute ( ConstructorInfo constructorInfo ) : void
AddInterface ( Type interfaceType ) : void
BuildConstructor ( ConstructorInfo constructorInfo ) : void
BuildEvent ( EventInfo eventInfo ) : void
BuildMethod ( MethodInfo methodInfo ) : void
BuildProperty ( PropertyInfo propertyInfo ) : void
CreateType ( ) : Type
IsConcreteEvent ( EventInfo eventInfo ) : bool
IsConcreteMethod ( MethodInfo methodInfo ) : bool
IsConcreteProperty ( PropertyInfo propertyInfo ) : bool
ProxyTypeBuilder ( ITypeRepository typeRepository, Type parentType ) : System

Initializes a new instance of the ProxyTypeBuilder class.

Private Methods

Method Description
BuildInterceptedMethod ( MethodInfo methodInfo, bool isExplicit ) : MethodBuilder

Builds an intercepted method based on the specified method.

GetMethodInfoConstructor ( MethodInfo methodInfo, Type genericParameterTypes ) : ConstructorInfo

Returns a constructor information for the specified method.

IsExplicitMember ( MemberInfo memberInfo ) : bool

Returns a value indicating whether the specified member should be implemented explicitly.

IsOverrideMember ( MemberInfo memberInfo ) : bool

Returns a value indicating whether the specified member should be overridden.

LoadArguments ( ILGenerator ilGenerator, IList parameterTypes, LocalBuilder parametersLocalBuilder ) : void

Loads the arguments onto the stack.

RestoreByReferenceArguments ( ILGenerator ilGenerator, IList parameterTypes, LocalBuilder parametersLocalBuilder ) : void

Restores the by reference arguments.

Method Details

AddCustomAttribute() public method

public AddCustomAttribute ( ConstructorInfo constructorInfo ) : void
constructorInfo System.Reflection.ConstructorInfo
return void

AddInterface() public method

public AddInterface ( Type interfaceType ) : void
interfaceType System.Type
return void

BuildConstructor() public method

public BuildConstructor ( ConstructorInfo constructorInfo ) : void
constructorInfo System.Reflection.ConstructorInfo
return void

BuildEvent() public method

public BuildEvent ( EventInfo eventInfo ) : void
eventInfo System.Reflection.EventInfo
return void

BuildMethod() public method

public BuildMethod ( MethodInfo methodInfo ) : void
methodInfo System.Reflection.MethodInfo
return void

BuildProperty() public method

public BuildProperty ( PropertyInfo propertyInfo ) : void
propertyInfo System.Reflection.PropertyInfo
return void

CreateType() public method

public CreateType ( ) : Type
return System.Type

IsConcreteEvent() public method

public IsConcreteEvent ( EventInfo eventInfo ) : bool
eventInfo System.Reflection.EventInfo
return bool

IsConcreteMethod() public method

public IsConcreteMethod ( MethodInfo methodInfo ) : bool
methodInfo System.Reflection.MethodInfo
return bool

IsConcreteProperty() public method

public IsConcreteProperty ( PropertyInfo propertyInfo ) : bool
propertyInfo System.Reflection.PropertyInfo
return bool

ProxyTypeBuilder() public method

Initializes a new instance of the ProxyTypeBuilder class.
public ProxyTypeBuilder ( ITypeRepository typeRepository, Type parentType ) : System
typeRepository ITypeRepository The type repository.
parentType System.Type The parent type.
return System