Click or drag to resize
ClassProxyGenerator Class
Summary description for ClassProxyGenerator.
Inheritance Hierarchy
SystemObject
  X3Platform.DynamicProxy.Builder.CodeGeneratorsBaseCodeGenerator
    X3Platform.DynamicProxy.Builder.CodeGeneratorsClassProxyGenerator

Namespace: X3Platform.DynamicProxy.Builder.CodeGenerators
Assembly: X3Platform.Support (in X3Platform.Support.dll) Version: 1.0.0.0 (2.0.0.0)
Syntax
public class ClassProxyGenerator : BaseCodeGenerator

The ClassProxyGenerator type exposes the following members.

Constructors
  NameDescription
Public methodClassProxyGenerator(ModuleScope)
Initializes a new instance of the ClassProxyGenerator class
Public methodClassProxyGenerator(ModuleScope, GeneratorContext)
Initializes a new instance of the ClassProxyGenerator class
Top
Methods
  NameDescription
Protected methodAddISerializable (Inherited from BaseCodeGenerator.)
Protected methodCreateProperty
Generate property implementation
(Inherited from BaseCodeGenerator.)
Protected methodCreateType (Inherited from BaseCodeGenerator.)
Protected methodCreateTypeBuilder (Inherited from BaseCodeGenerator.)
Protected methodCustomizeGetObjectData (Overrides BaseCodeGeneratorCustomizeGetObjectData(AbstractCodeBuilder, ArgumentReference, ArgumentReference).)
Public methodEquals (Inherited from Object.)
Protected methodFilter (Inherited from BaseCodeGenerator.)
Protected methodFinalize (Inherited from Object.)
Protected methodGenerateCallbackMethodIfNecessary (Inherited from BaseCodeGenerator.)
Public methodGenerateCode(Type)
Public methodGenerateCode(Type, Type)
Protected methodGenerateConstructor
Generates one public constructor receiving the IInterceptor instance and instantiating a hashtable
(Inherited from BaseCodeGenerator.)
Protected methodGenerateConstructor(ConstructorInfo)
Generates one public constructor receiving the IInterceptor instance and instantiating a hashtable
Protected methodGenerateConstructorCode
Common initializatio code for the default constructor
(Inherited from BaseCodeGenerator.)
Protected methodGenerateConstructors
Public methodGenerateCustomCode
Protected methodGenerateFields (Inherited from BaseCodeGenerator.)
Protected methodGenerateInterfaceImplementation
(Inherited from BaseCodeGenerator.)
Protected methodGenerateMethodImplementation
Generates implementation for each method.
(Inherited from BaseCodeGenerator.)
Protected methodGenerateMethods (Inherited from BaseCodeGenerator.)
Protected methodGenerateProperties (Inherited from BaseCodeGenerator.)
Protected methodGenerateSerializationConstructor
Protected methodGenerateTypeImplementation
Iterates over the interfaces and generate implementation for each method in it.
(Inherited from BaseCodeGenerator.)
Protected methodGenerateTypeName (Overrides BaseCodeGeneratorGenerateTypeName(Type, Type).)
Protected methodGetCorrectMethod (Inherited from BaseCodeGenerator.)
Protected methodGetFromCache (Inherited from BaseCodeGenerator.)
Public methodGetHashCode (Inherited from Object.)
Protected methodGetPseudoInvocationTarget (Inherited from BaseCodeGenerator.)
Public methodGetType (Inherited from Object.)
Protected methodGetTypeName
Gets the name of a type, taking into consideration nested types.
(Inherited from BaseCodeGenerator.)
Protected methodImplementCacheInvocationCache (Inherited from BaseCodeGenerator.)
Protected methodImplementGetObjectData (Inherited from BaseCodeGenerator.)
Protected methodInspectAndRegisterInterfaces (Inherited from BaseCodeGenerator.)
Protected methodIsInternalToDynamicProxy (Inherited from BaseCodeGenerator.)
Protected methodJoin
Protected methodMemberwiseClone (Inherited from Object.)
Protected methodNormalizeNamespaceName
Naive implementation, but valid for long namespaces Works by using only the last piece of the namespace
(Inherited from BaseCodeGenerator.)
Protected methodObtainAvailableConstructor (Inherited from BaseCodeGenerator.)
Protected methodObtainCallableFieldBuilderDelegate (Inherited from BaseCodeGenerator.)
Protected methodPostProcessMethod (Inherited from BaseCodeGenerator.)
Protected methodPreProcessMethod (Inherited from BaseCodeGenerator.)
Protected methodRegisterDelegateFieldToBeInitialized (Inherited from BaseCodeGenerator.)
Protected methodRegisterInCache (Inherited from BaseCodeGenerator.)
Protected methodSkipDefaultInterfaceImplementation
Public methodToString (Inherited from Object.)
Protected methodVerifyIfBaseImplementsGetObjectData
Protected methodWriteInterceptorInvocationMethod
Writes the method implementation. This method generates the IL code for property get/set method and ordinary methods.
(Inherited from BaseCodeGenerator.)
Top
Fields
  NameDescription
Protected field_baseType (Inherited from BaseCodeGenerator.)
Protected field_cachedFields
Holds instance fields which points to delegates instantiated
(Inherited from BaseCodeGenerator.)
Protected field_interface2mixinIndex (Inherited from BaseCodeGenerator.)
Protected field_method2Delegate
MethodInfo => Callable delegate
(Inherited from BaseCodeGenerator.)
Protected field_method2Invocation (Inherited from BaseCodeGenerator.)
Protected field_mixins (Inherited from BaseCodeGenerator.)
Protected field_serializationConstructor
Top
Properties
See Also