X3Platform 帮助文档
X3Platform 帮助文档
X3Platform
X3Platform.DynamicProxy.Builder.CodeGenerators
ClassProxyGenerator Class
ClassProxyGenerator Methods
CustomizeGetObjectData Method
GenerateCode Method
GenerateConstructor Method
GenerateConstructors Method
GenerateCustomCode Method
GenerateSerializationConstructor Method
GenerateTypeName Method
Join Method
SkipDefaultInterfaceImplementation Method
VerifyIfBaseImplementsGetObjectData Method
ClassProxyGenerator Methods
The
ClassProxyGenerator
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
(Inherited from
BaseCodeGenerator
.)
GenerateCode(Type)
GenerateCode(Type,
Type
)
GenerateConstructor
Generates one public constructor receiving the
IInterceptor
instance and instantiating a hashtable
(Inherited from
BaseCodeGenerator
.)
GenerateConstructor(ConstructorInfo)
Generates one public constructor receiving the
IInterceptor
instance and instantiating a hashtable
GenerateConstructorCode
Common initializatio code for the default constructor
(Inherited from
BaseCodeGenerator
.)
GenerateConstructors
GenerateCustomCode
GenerateFields
(Inherited from
BaseCodeGenerator
.)
GenerateInterfaceImplementation
(Inherited from
BaseCodeGenerator
.)
GenerateMethodImplementation
Generates implementation for each method.
(Inherited from
BaseCodeGenerator
.)
GenerateMethods
(Inherited from
BaseCodeGenerator
.)
GenerateProperties
(Inherited from
BaseCodeGenerator
.)
GenerateSerializationConstructor
GenerateTypeImplementation
Iterates over the interfaces and generate implementation for each method in it.
(Inherited from
BaseCodeGenerator
.)
GenerateTypeName
(Overrides
BaseCodeGenerator
GenerateTypeName(Type,
Type
)
.)
GetCorrectMethod
(Inherited from
BaseCodeGenerator
.)
GetFromCache
(Inherited from
BaseCodeGenerator
.)
GetHashCode
(Inherited from
Object
.)
GetPseudoInvocationTarget
(Inherited from
BaseCodeGenerator
.)
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
.)
SkipDefaultInterfaceImplementation
ToString
(Inherited from
Object
.)
VerifyIfBaseImplementsGetObjectData
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
ClassProxyGenerator Class
X3Platform.DynamicProxy.Builder.CodeGenerators Namespace