C# Class NProxy.Core.ProxyTypeBuilder

Represents a proxy type builder.
Inheritance: ITypeBuilder
Afficher le fichier Open project: mtamme/NProxy

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AddCustomAttribute ( ConstructorInfo constructorInfo ) : void
constructorInfo System.Reflection.ConstructorInfo
Résultat void

AddInterface() public méthode

public AddInterface ( Type interfaceType ) : void
interfaceType System.Type
Résultat void

BuildConstructor() public méthode

public BuildConstructor ( ConstructorInfo constructorInfo ) : void
constructorInfo System.Reflection.ConstructorInfo
Résultat void

BuildEvent() public méthode

public BuildEvent ( EventInfo eventInfo ) : void
eventInfo System.Reflection.EventInfo
Résultat void

BuildMethod() public méthode

public BuildMethod ( MethodInfo methodInfo ) : void
methodInfo System.Reflection.MethodInfo
Résultat void

BuildProperty() public méthode

public BuildProperty ( PropertyInfo propertyInfo ) : void
propertyInfo System.Reflection.PropertyInfo
Résultat void

CreateType() public méthode

public CreateType ( ) : Type
Résultat System.Type

IsConcreteEvent() public méthode

public IsConcreteEvent ( EventInfo eventInfo ) : bool
eventInfo System.Reflection.EventInfo
Résultat bool

IsConcreteMethod() public méthode

public IsConcreteMethod ( MethodInfo methodInfo ) : bool
methodInfo System.Reflection.MethodInfo
Résultat bool

IsConcreteProperty() public méthode

public IsConcreteProperty ( PropertyInfo propertyInfo ) : bool
propertyInfo System.Reflection.PropertyInfo
Résultat bool

ProxyTypeBuilder() public méthode

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.
Résultat System