X3Platform 帮助文档
X3Platform 帮助文档
X3Platform
X3Platform.DynamicProxy.Builder.CodeGenerators
InterfaceProxyGenerator Class
InterfaceProxyGenerator Methods
CustomizeGetObjectData Method
GenerateCallbackMethodIfNecessary Method
GenerateCode Method
GenerateConstructor Method
GenerateFields Method
GenerateTypeName Method
GetCorrectMethod Method
GetPseudoInvocationTarget Method
Join Method
InterfaceProxyGenerator Methods
The
InterfaceProxyGenerator
type exposes the following members.
Methods
Name
Description
AddISerializable
(Inherited from
BaseCodeGenerator
.)
CreateProperty
Generate property implementation
(Inherited from
BaseCodeGenerator
.)
CreateType
(Inherited from
BaseCodeGenerator
.)
CreateTypeBuilder
(Inherited from
BaseCodeGenerator
.)
CustomizeGetObjectData
(Overrides
BaseCodeGenerator
CustomizeGetObjectData(AbstractCodeBuilder, ArgumentReference, ArgumentReference)
.)
Equals
(Inherited from
Object
.)
Filter
(Inherited from
BaseCodeGenerator
.)
Finalize
(Inherited from
Object
.)
GenerateCallbackMethodIfNecessary
(Overrides
BaseCodeGenerator
GenerateCallbackMethodIfNecessary(MethodInfo, Reference)
.)
GenerateCode
GenerateConstructor
Generates one public constructor receiving the
IInterceptor
instance and instantiating a HybridCollection
(Overrides
BaseCodeGenerator
GenerateConstructor
.)
GenerateConstructorCode
Common initializatio code for the default constructor
(Inherited from
BaseCodeGenerator
.)
GenerateFields
(Overrides
BaseCodeGenerator
GenerateFields
.)
GenerateInterfaceImplementation
(Inherited from
BaseCodeGenerator
.)
GenerateMethodImplementation
Generates implementation for each method.
(Inherited from
BaseCodeGenerator
.)
GenerateMethods
(Inherited from
BaseCodeGenerator
.)
GenerateProperties
(Inherited from
BaseCodeGenerator
.)
GenerateTypeImplementation
Iterates over the interfaces and generate implementation for each method in it.
(Inherited from
BaseCodeGenerator
.)
GenerateTypeName
(Overrides
BaseCodeGenerator
GenerateTypeName(Type,
Type
)
.)
GetCorrectMethod
From an interface method (abstract) look up for a matching method on the target
(Overrides
BaseCodeGenerator
GetCorrectMethod(MethodInfo)
.)
GetFromCache
(Inherited from
BaseCodeGenerator
.)
GetHashCode
(Inherited from
Object
.)
GetPseudoInvocationTarget
(Overrides
BaseCodeGenerator
GetPseudoInvocationTarget(MethodInfo)
.)
GetType
(Inherited from
Object
.)
GetTypeName
Gets the name of a type, taking into consideration nested types.
(Inherited from
BaseCodeGenerator
.)
ImplementCacheInvocationCache
(Inherited from
BaseCodeGenerator
.)
ImplementGetObjectData
(Inherited from
BaseCodeGenerator
.)
InspectAndRegisterInterfaces
(Inherited from
BaseCodeGenerator
.)
IsInternalToDynamicProxy
(Inherited from
BaseCodeGenerator
.)
Join
MemberwiseClone
(Inherited from
Object
.)
NormalizeNamespaceName
Naive implementation, but valid for long namespaces Works by using only the last piece of the namespace
(Inherited from
BaseCodeGenerator
.)
ObtainAvailableConstructor
(Inherited from
BaseCodeGenerator
.)
ObtainCallableFieldBuilderDelegate
(Inherited from
BaseCodeGenerator
.)
PostProcessMethod
(Inherited from
BaseCodeGenerator
.)
PreProcessMethod
(Inherited from
BaseCodeGenerator
.)
RegisterDelegateFieldToBeInitialized
(Inherited from
BaseCodeGenerator
.)
RegisterInCache
(Inherited from
BaseCodeGenerator
.)
ToString
(Inherited from
Object
.)
WriteInterceptorInvocationMethod
Writes the method implementation. This method generates the IL code for property get/set method and ordinary methods.
(Inherited from
BaseCodeGenerator
.)
Top
See Also
Reference
InterfaceProxyGenerator Class
X3Platform.DynamicProxy.Builder.CodeGenerators Namespace