Castle.DynamicProxy Summary description for ReferenceExpression. Summary description for Expression. Summary description for IEmitter. Summary description for ArgumentReference. Summary description for TypeReference. Summary description for Reference. Summary description for AssignArrayStatement. Summary description for Statement. Summary description for AssignStatement. Summary description for BinaryExpression. Summary description for ConditionExpression. Summary description for ConstructorInvocationExpression. Summary description for ConvertExpression. Summary description for ExpressionStatement. Summary description for FieldReference. Summary description for FixedReference. Summary description for GotoStatement. Wraps a reference that is passed ByRef and provides indirect load/store facilities. Summary description for LabelReference. Summary description for LoadRefArrayElementExpression. Summary description for LocalReference. Summary description for LockBlockExpression. Summary description for MarkBranchStatement. Summary description for MethodInvocationExpression. Summary description for MethodPointerExpression. Summary description for MethodTokenExpression. Summary description for NewArrayExpression. Summary description for NewInstanceExpression. Summary description for NopStatement. Summary description for NullExpression. Summary description for PopValueFromStackStatement. Summary description for ReferenceExpression. Summary description for ReferencesToObjectArrayExpression. Summary description for ReturnReferenceExpression. Summary description for ReturnStatement. Summary description for SelfReference. Summary description for TypeTokenExpression. Summary description for VirtualMethodInvocationExpression. Summary description for ArgumentsUtil. Provides appropriate Ldc.X opcode for the type of primitive value to be loaded. Provides appropriate Ldind.X opcode for the type of primitive value to be loaded indirectly. Provides appropriate Stind.X opcode for the type of primitive value to be stored indirectly. Summary description for OpCodeUtil. Emits a load opcode of the appropriate kind for a constant string or primitive value. Emits a load opcode of the appropriate kind for the constant default value of a type, such as 0 for value types and null for reference types. Emits a load indirect opcode of the appropriate type for a value or object reference. Pops a pointer off the evaluation stack, dereferences it and loads a value of the specified type. Emits a store indirectopcode of the appropriate type for a value or object reference. Pops a value of the specified type and a pointer off the evaluation stack, and stores the value. Summary description for AbstractCodeBuilder. Summary description for AbstractEasyType. Summary description for ConstructorCodeBuilder. Summary description for ConstructorCollection. Summary description for EasyCallable. Summary description for EasyNested. Summary description for EasyConstructor. Summary description for IEasyBuilder. Summary description for EasyDefaultConstructor. Summary description for EasyEvent. Summary description for EasyMethod. Summary description for EasyProperty. Summary description for EasyRuntimeConstructor. Summary description for EasyRuntimeMethod. Summary description for EasyType. Summary description for EventsCollection. Summary description for MethodCodeBuilder. Summary description for MethodCollection. Summary description for NestedTypeCollection. Summary description for PropertiesCollection. Summary description for Set. Summary description for BaseCodeGenerator. Holds instance fields which points to delegates instantiated MethodInfo => Callable delegate Generates one public constructor receiving the instance and instantiating a hashtable Should be overrided to provided specific semantics, if necessary Common initializatio code for the default constructor Iterates over the interfaces and generate implementation for each method in it. Type class if true, we inspect the type for implemented interfaces Naive implementation, but valid for long namespaces Works by using only the last piece of the namespace Gets the name of a type, taking into consideration nested types. Generate property implementation Generates implementation for each method. Writes the method implementation. This method generates the IL code for property get/set method and ordinary methods. The method to implement. being constructed. Summary description for ClassProxyGenerator. Generates one public constructor receiving the instance and instantiating a hashtable Summary description for InterfaceProxyGenerator. From an interface method (abstract) look up for a matching method on the target Generates one public constructor receiving the instance and instantiating a HybridCollection Summary description for ModuleScope. Avoid leaks caused by non disposal of generated types. Keep track of generated types Used to lock the module builder creation Summary description for ProxyGenerationException. Summary description for DefaultProxyBuilder. Summary description for IProxyBuilder. Summary description for GeneratorContext. Checks if the method has the same signature as a method that was marked as one that should generate a new vtable slot. The implementor of IObjectReference responsible for the deserialization and reconstruction of the proxy object Proceed with, manipulate or find more information about the call that is being intercepted Proceed with the call that was intercepted. The arguments that will be passed onto the method. The argument returned from the method. Get the dynamic proxy that intercepted this call. Get or set target that will be invoked when Process() is called. Changing InvocationTarget only effects this call. Any call made after this will invoke the original target of the proxy. Get the method that is being invoked. Get the method on the target object that is being invoked. Handles the deserialization of proxies. Usefull for test cases Summary description for AssertUtil. Generates a Java style proxy. This overrides the .Net proxy requirements that forces one to extend MarshalByRefObject or (for a different purpose) ContextBoundObject to have a Proxiable class. The should be used to generate a class implementing the specified interfaces. The dynamic implementation will only calls the internal instance. Please note that this proxy implementation currently doesn't not supports ref and out arguments in methods. Also note that only virtual methods can be proxied in a class. MyInvocationHandler interceptor = ... ProxyGenerator generator = new ProxyGenerator(); IInterfaceExposed proxy = generator.CreateProxy( new Type[] { typeof(IInterfaceExposed) }, interceptor ); Generates a proxy implementing all the specified interfaces and redirecting method invocations to the specifed interceptor. Interface to be implemented instance of The proxy target. Proxy instance Generates a proxy implementing all the specified interfaces and redirecting method invocations to the specifed interceptor. Array of interfaces to be implemented instance of The proxy target. Proxy instance The proxy target. The proxy target. Summary description for StandardInterceptor.