C# Class NProxy.Core.ProxyGenerator

Represents the proxy generator.
Inheritance: IProxyDefinitionVisitor
ファイルを表示 Open project: mtamme/NProxy Class Usage Examples

Public Methods

Method Description
GenerateProxyTemplate ( IProxyDefinition proxyDefinition ) : IProxyTemplate

Generates a proxy template based on the specified proxy definition.

ProxyGenerator ( ITypeBuilder typeBuilder, IInterceptionFilter interceptionFilter ) : System

Initializes a new instance of the ProxyGenerator class.

VisitConstructor ( ConstructorInfo constructorInfo ) : void
VisitEvent ( EventInfo eventInfo ) : void
VisitInterface ( Type interfaceType ) : void
VisitMethod ( MethodInfo methodInfo ) : void
VisitProperty ( PropertyInfo propertyInfo ) : void

Method Details

GenerateProxyTemplate() public method

Generates a proxy template based on the specified proxy definition.
public GenerateProxyTemplate ( IProxyDefinition proxyDefinition ) : IProxyTemplate
proxyDefinition IProxyDefinition The proxy definition.
return IProxyTemplate

ProxyGenerator() public method

Initializes a new instance of the ProxyGenerator class.
public ProxyGenerator ( ITypeBuilder typeBuilder, IInterceptionFilter interceptionFilter ) : System
typeBuilder ITypeBuilder The type builder.
interceptionFilter IInterceptionFilter The interception filter.
return System

VisitConstructor() public method

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

VisitEvent() public method

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

VisitInterface() public method

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

VisitMethod() public method

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

VisitProperty() public method

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