Castle.DynamicProxy2 Wraps a reference that is passed ByRef and provides indirect load/store support. Summary description for NewArrayExpression. Here we try to match a constructor argument to its value. Since we can't get the values from the assembly, we use some heuristics to get it. a/ we first try to match all the properties on the attributes by name (case insensitive) to the argument b/ if we fail we try to match them by property type, with some smarts about convertions (i,e: can use Guid for string). We have the following rules here. Try to find a matching type, failing that, if the parameter is string, get the first property (under the assumption that we can convert it. Attributes can only accept simple types, so we return null for null, if the value is passed as string we call to string (should help with converting), otherwise, we use the value as is (enums, integer, etc). s 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. Inspect the base method for generic definitions and set the return type and the parameters accordingly 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 PropertiesCollection. Provides appropriate Stind.X opcode for the type of primitive value to be stored indirectly. Base class that exposes the common functionalities to proxy generation. TODO: - Add tests and fixes for 'leaking this' problem Used by dinamically implement Generates a parameters constructor that initializes the proxy state with just to make it non-null. This constructor is important to allow proxies to be XML serializable If callbackMethod is null the InvokeOnTarget implementation is just the code to throw an exception If callbackMethod is null the InvokeOnTarget implementation is just the code to throw an exception If true the invocation will implement the IChangeProxyTarget interface Generates the constructor for the nested class that extends Improvement: this cache should be static. We should generate a type constructor instead Performs some basic screening and invokes the to select methods. Checks if the method is public or protected. Attributes should be replicated if they are non-inheritable, but there are some special cases where the attributes means something to the CLR, where they should be skipped. Checks if the method has the same signature as a method that was marked as one that should generate a new vtable slot. Initializes a new instance of the class. Type of the target. The interfaces. The options. Initializes a new instance of the class. The emitter. The add method. The remove method. The attributes. Finds the type of the method on target. The method on interface. Type of the proxy target. /// if set to true will check implementation on mixins. Checks whether the given types are the same. This is more complicated than it looks. Checks whether the given methods are the same. True if the methods are the same. This is used by the ProxyObjectReference class durin de-serialiation, to know which generator it should use Returns the methods implemented by a type. Use this instead of Type.GetMethods() to work around a CLR issue where duplicate MethodInfos are returned by Type.GetMethods() after a token of a generic type's method was loaded. Handles the deserialization of proxies. Resets the used for deserialization to a new scope. This is useful for test cases. Resets the used for deserialization to a given . The scope to be used for deserialization. By default, the deserialization process uses a different scope than the rest of the application, which can lead to multiple proxies being generated for the same type. By explicitly setting the deserialization scope to the application's scope, this can be avoided. Gets the used for deserialization. As has no way of automatically determining the scope used by the application (and the application might use more than one scope at the same time), uses a dedicated scope instance for deserializing proxy types. This instance can be reset and set to a specific value via and . Used during the target type inspection process. Implementors have a chance to customize the proxy generation process. Invoked by the generation process to determine if the specified method should be proxied. The type which declares the given method. The method to inspect. True if the given method should be proxied; false otherwise. Invoked by the generation process to notify that a member was not marked as virtual. The type which declares the non-virtual member. The non-virtual member. Non-virtual members cannot be proxied. This method gives an opportunity to inspect any non-virtual member of a type that has been requested to be proxied, and if appropriate - throw an exception to notify the caller. Invoked by the generation process to notify that the whole process has completed. Applied to the assemblies saved by in order to persist the cache data included in the persisted assembly. Default implementation of interface producing in-memory proxy assemblies. Abstracts the implementation of proxy type construction. Creates a proxy type for given , using provided. The class type to proxy. The proxy generation options. The generated proxy type. Thrown when is a generic type definition. Thrown when is not public. Note that to avoid this exception, you can mark offending type internal, and define pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. Creates a proxy type for given , implementing , using provided. The class type to proxy. Additional interface types to proxy. The proxy generation options. The generated proxy type. Implementers should return a proxy type for the specified class and interfaces. Additional interfaces should be only 'mark' interfaces, that is, they should work like interface proxy without target. (See method.) Thrown when or any of is a generic type definition. Thrown when or any of is not public. Note that to avoid this exception, you can mark offending type internal, and define pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. Creates a proxy type that proxies calls to members on , implementing , using provided. The interface type to proxy. Additional interface types to proxy. Type implementing on which calls to the interface members should be intercepted. The proxy generation options. The generated proxy type. Implementers should return a proxy type for the specified interface that 'proceeds' executions to the specified target. Additional interfaces should be only 'mark' interfaces, that is, they should work like interface proxy without target. (See method.) Thrown when or any of is a generic type definition. Thrown when or any of is not public. Note that to avoid this exception, you can mark offending type internal, and define pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. Creates a proxy type for given that delegates all calls to the provided interceptors. The interface type to proxy. Additional interface types to proxy. The proxy generation options. The generated proxy type. Implementers should return a proxy type for the specified interface and additional interfaces that delegate all executions to the specified interceptors. Thrown when or any of is a generic type definition. Thrown when or any of is not public. Note that to avoid this exception, you can mark offending type internal, and define pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. Creates a proxy type for given and that delegates all calls to the provided interceptors and allows interceptors to switch the actual target of invocation. The interface type to proxy. Additional interface types to proxy. The proxy generation options. The generated proxy type. Implementers should return a proxy type for the specified interface(s) that delegate all executions to the specified interceptors and uses an instance of the interface as their targets (i.e. ), rather than a class. All classes should then implement interface, to allow interceptors to switch invocation target with instance of another type implementing called interface. Thrown when or any of is a generic type definition. Thrown when or any of is not public. Note that to avoid this exception, you can mark offending type internal, and define pointing to Castle Dynamic Proxy assembly, in assembly containing that type, if this is appropriate. Gets the associated with this builder. The module scope associated with this builder. Initializes a new instance of the class with new . Initializes a new instance of the class. The module scope for generated proxy types. Provides an extension point that allows proxies to choose specific interceptors on a per method basis. Selects the interceptors that should intercept calls to the given . The type declaring the method to intercept. The method that will be intercepted. All interceptors registered with the proxy. An array of interceptors to invoke upon calling the . This method is called only once per proxy instance, upon the first call to the . Either an empty array or null are valid return values to indicate that no interceptor should intercept calls to the method. Although it is not advised, it is legal to return other implementations than these provided in . A better way to do this, is by passing all the required interceptors to the appropriate method of . You can use this method to influence the order in which interceptors will be called, by reordering the array. Returning an array containing null references (Nothing in Visual Basic) is not legal, and will result in a runtime exception. Determines whether this assembly has internals visible to dynamic proxy. The assembly to inspect. Determines whether the specified method is internal. The method. true if the specified method is internal; otherwise, false. Because we need to cache the types based on the mixed in mixins, we do the following here: - Get all the mixin interfaces - Sort them by full name - Return them by position The idea is to have reproducable behavior for the case that mixins are registered in different orders. This method is here because it is required Summary description for ModuleScope. The default file name used when the assembly is saved using . The default assembly (simple) name used for the assemblies generated by a instance. Initializes a new instance of the class; assemblies created by this instance will not be saved. Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance should be saved. If set to true saves the generated module. Initializes a new instance of the class, allowing to specify whether the assemblies generated by this instance should be saved and what simple names are to be assigned to them. If set to true saves the generated module. The simple name of the strong-named assembly generated by this . The path and file name of the manifest module of the strong-named assembly generated by this . The simple name of the weak-named assembly generated by this . The path and file name of the manifest module of the weak-named assembly generated by this . Returns a type from this scope's type cache, or null if the key cannot be found. The key to be looked up in the cache. The type from this scope's type cache matching the key, or null if the key cannot be found Registers a type in this scope's type cache. The key to be associated with the type. The type to be stored in the cache. Gets the key pair used to sign the strong-named assembly generated by this . Gets the specified module generated by this scope, creating a new one if none has yet been generated. If set to true, a strong-named module is returned; otherwise, a weak-named module is returned. A strong-named or weak-named module generated by this scope, as specified by the parameter. Gets the strong-named module generated by this scope, creating a new one if none has yet been generated. A strong-named module generated by this scope. Gets the weak-named module generated by this scope, creating a new one if none has yet been generated. A weak-named module generated by this scope. Saves the generated assembly with the name and directory information given when this instance was created (or with the and current directory if none was given). This method stores the generated assembly in the directory passed as part of the module information specified when this instance was constructed (if any, else the current directory is used). If both a strong-named and a weak-named assembly have been generated, it will throw an exception; in this case, use the overload. If this was created without indicating that the assembly should be saved, this method does nothing. Both a strong-named and a weak-named assembly have been generated. The path of the generated assembly file, or null if no file has been generated. Saves the specified generated assembly with the name and directory information given when this instance was created (or with the and current directory if none was given). True if the generated assembly with a strong name should be saved (see ); false if the generated assembly without a strong name should be saved (see . This method stores the specified generated assembly in the directory passed as part of the module information specified when this instance was constructed (if any, else the current directory is used). If this was created without indicating that the assembly should be saved, this method does nothing. No assembly has been generated that matches the parameter. The path of the generated assembly file, or null if no file has been generated. Loads the generated types from the given assembly into this 's cache. The assembly to load types from. This assembly must have been saved via or , or it must have the manually applied. This method can be used to load previously generated and persisted proxy types from disk into this scope's type cache, eg. in order to avoid the performance hit associated with proxy generation. Users of this should use this lock when accessing the cache. Gets the strong-named module generated by this scope, or if none has yet been generated. The strong-named module generated by this scope, or if none has yet been generated. Gets the file name of the strongly named module generated by this scope. The file name of the strongly named module generated by this scope. Gets the directory where the strongly named module generated by this scope will be saved, or if the current directory is used. The directory where the strongly named module generated by this scope will be saved when is called (if this scope was created to save modules). Gets the weak-named module generated by this scope, or if none has yet been generated. The weak-named module generated by this scope, or if none has yet been generated. Gets the file name of the weakly named module generated by this scope. The file name of the weakly named module generated by this scope. Gets the directory where the weakly named module generated by this scope will be saved, or if the current directory is used. The directory where the weakly named module generated by this scope will be saved when is called (if this scope was created to save modules). ProxyBuilder that persists the generated type. The saved assembly contains just the last generated type. Initializes a new instance of the class. Saves the generated assembly to a physical file. Note that this renders the unusable. The path of the generated assembly file, or null if no assembly has been generated. This method does not support saving multiple files. If both a signed and an unsigned module have been generated, use the respective methods of the . Initializes a new instance of the class. The hook. Initializes a new instance of the class. Provides proxy objects for classes and interfaces. Initializes a new instance of the class. Proxy types builder. Initializes a new instance of the class. Creates proxy object intercepting calls to members of interface on object with given . Type of the interface implemented by which will be proxied. The target object, calls to which will be intercepted. The interceptors called during the invocation of proxied methods. Object proxying calls to members of on object. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given array is a null reference (Nothing in Visual Basic). Thrown when given is not an interface type. Thrown when no default constructor exists on actual type of object. Thrown when default constructor of actual type of throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to members of interface on object with given . Type of the interface implemented by which will be proxied. The target object, calls to which will be intercepted. The proxy generation options used to influence generated proxy type and object. The interceptors called during the invocation of proxied methods. Object proxying calls to members of on object. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given array is a null reference (Nothing in Visual Basic). Thrown when given is not an interface type. Thrown when no default constructor exists on actual type of object. Thrown when default constructor of actual type of throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to members of interface on object with given . Type of the interface implemented by which will be proxied. The target object, calls to which will be intercepted. The interceptors called during the invocation of proxied methods. Object proxying calls to members of type on object. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given array is a null reference (Nothing in Visual Basic). Thrown when given is a generic type definition. Thrown when given is not an interface type. Thrown when given does not implement interface. Thrown when no default constructor exists on actual type of object. Thrown when default constructor of actual type of throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to members of interface on object with given . Type of the interface implemented by which will be proxied. The target object, calls to which will be intercepted. The proxy generation options used to influence generated proxy type and object. The interceptors called during the invocation of proxied methods. Object proxying calls to members of type on object. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given array is a null reference (Nothing in Visual Basic). Thrown when given is a generic type definition. Thrown when given is not an interface type. Thrown when given does not implement interface. Thrown when no default constructor exists on actual type of object. Thrown when default constructor of actual type of throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to members of interface on object with given . Type of the interface implemented by which will be proxied. The target object, calls to which will be intercepted. Additional interface types. Calls to their members will be proxied as well. The interceptors called during the invocation of proxied methods. Object proxying calls to members of and types on object. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given array is a null reference (Nothing in Visual Basic). Thrown when given or any of is a generic type definition. Thrown when given is not an interface type. Thrown when given does not implement interface. Thrown when no default constructor exists on actual type of object. Thrown when default constructor of actual type of throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to members of interface on object with given . Type of the interface implemented by which will be proxied. The target object, calls to which will be intercepted. The proxy generation options used to influence generated proxy type and object. Additional interface types. Calls to their members will be proxied as well. The interceptors called during the invocation of proxied methods. Object proxying calls to members of and types on object. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given array is a null reference (Nothing in Visual Basic). Thrown when given or any of is a generic type definition. Thrown when given is not an interface type. Thrown when given does not implement interface. Thrown when no default constructor exists on actual type of object. Thrown when default constructor of actual type of throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to members of interface on object with given . Interceptors can use interface to provide other target for method invocation than default . Type of the interface implemented by which will be proxied. The target object, calls to which will be intercepted. The interceptors called during the invocation of proxied methods. Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given array is a null reference (Nothing in Visual Basic). Thrown when given is a generic type definition. Thrown when given is not an interface type. Thrown when given does not implement interface. Thrown when no default constructor exists on actual type of object. Thrown when default constructor of actual type of throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to members of interface on object with given . Interceptors can use interface to provide other target for method invocation than default . Type of the interface implemented by which will be proxied. The target object, calls to which will be intercepted. The proxy generation options used to influence generated proxy type and object. The interceptors called during the invocation of proxied methods. Object proxying calls to members of type on object or alternative implementation swapped at runtime by an interceptor. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given array is a null reference (Nothing in Visual Basic). Thrown when given is a generic type definition. Thrown when given is not an interface type. Thrown when given does not implement interface. Thrown when no default constructor exists on actual type of object. Thrown when default constructor of actual type of throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to members of interface on object with given . Interceptors can use interface to provide other target for method invocation than default . Type of the interface implemented by which will be proxied. The target object, calls to which will be intercepted. The proxy generation options used to influence generated proxy type and object. Additional interface types. Calls to their members will be proxied as well. The interceptors called during the invocation of proxied methods. Object proxying calls to members of and types on object or alternative implementation swapped at runtime by an interceptor. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given array is a null reference (Nothing in Visual Basic). Thrown when given or any of is a generic type definition. Thrown when given is not an interface type. Thrown when given does not implement interface. Thrown when no default constructor exists on actual type of object. Thrown when default constructor of actual type of throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . Type of the interface which will be proxied. The interceptors called during the invocation of proxied methods. Object proxying calls to members of types on generated target object. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given is not an interface type. Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . Type of the interface which will be proxied. The interceptors called during the invocation of proxied methods. Object proxying calls to members of types on generated target object. Thrown when given array is a null reference (Nothing in Visual Basic). Thrown when given is not an interface type. Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. As a result of that also at least one implementation must be provided. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . Type of the interface which will be proxied. The interceptor called during the invocation of proxied methods. Object proxying calls to members of type on generated target object. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given is a generic type definition. Thrown when given is not an interface type. Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . Type of the interface which will be proxied. The interceptors called during the invocation of proxied methods. Object proxying calls to members of type on generated target object. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given array is a null reference (Nothing in Visual Basic). Thrown when given is a generic type definition. Thrown when given is not an interface type. Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . Type of the interface which will be proxied. Additional interface types. Calls to their members will be proxied as well. The interceptors called during the invocation of proxied methods. Object proxying calls to members of and types on generated target object. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given array is a null reference (Nothing in Visual Basic). Thrown when given or any of is a generic type definition. Thrown when given is not an interface type. Since this method uses an empty-shell implementation of interfaces to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to members of interface on target object generated at runtime with given . Type of the interface which will be proxied. The proxy generation options used to influence generated proxy type and object. Additional interface types. Calls to their members will be proxied as well. The interceptors called during the invocation of proxied methods. Object proxying calls to members of and types on generated target object. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given array is a null reference (Nothing in Visual Basic). Thrown when given or any of is a generic type definition. Thrown when given is not an interface type. Since this method uses an empty-shell implementation of to proxy generated at runtime, the actual implementation of proxied methods must be provided by given implementations. They are responsible for setting return value (and out parameters) on proxied methods. It is also illegal for an interceptor to call , since there's no actual implementation to proceed with. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . Type of class which will be proxied. The interceptors called during the invocation of proxied methods. New object of type proxying calls to virtual members of type. Thrown when given is not a class type. Thrown when no default constructor exists on type . Thrown when default constructor of type throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . Type of class which will be proxied. The interceptors called during the invocation of proxied methods. New object of type proxying calls to virtual members of type. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given is a generic type definition. Thrown when given is not a class type. Thrown when no default constructor exists on type . Thrown when default constructor of type throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . Type of class which will be proxied. Additional interface types. Calls to their members will be proxied as well. The interceptors called during the invocation of proxied methods. New object of type proxying calls to virtual members of and types. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given or any of is a generic type definition. Thrown when given is not a class type. Thrown when no default constructor exists on type . Thrown when default constructor of type throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . Type of class which will be proxied. Arguments of constructor of type which should be used to create a new instance of that type. The interceptors called during the invocation of proxied methods. New object of type proxying calls to virtual members of type. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given is a generic type definition. Thrown when given is not a class type. Thrown when no constructor exists on type with parameters matching . Thrown when constructor of type throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . Type of class which will be proxied. The proxy generation options used to influence generated proxy type and object. The interceptors called during the invocation of proxied methods. New object of type proxying calls to virtual members of type. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given is a generic type definition. Thrown when given is not a class type. Thrown when no default constructor exists on type . Thrown when default constructor of type throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . Type of class which will be proxied. Additional interface types. Calls to their members will be proxied as well. The proxy generation options used to influence generated proxy type and object. The interceptors called during the invocation of proxied methods. New object of type proxying calls to virtual members of and types. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given or any of is a generic type definition. Thrown when given is not a class type. Thrown when no default constructor exists on type . Thrown when default constructor of type throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates proxy object intercepting calls to virtual members of type on newly created instance of that type with given . Type of class which will be proxied. Additional interface types. Calls to their members will be proxied as well. The proxy generation options used to influence generated proxy type and object. Arguments of constructor of type which should be used to create a new instance of that type. The interceptors called during the invocation of proxied methods. New object of type proxying calls to virtual members of and types. Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given object is a null reference (Nothing in Visual Basic). Thrown when given or any of is a generic type definition. Thrown when given is not a class type. Thrown when no constructor exists on type with parameters matching . Thrown when constructor of type throws an exception. This method uses implementation to generate a proxy type. As such caller should expect any type of exception that given implementation may throw. Creates the proxy type for class proxy with given class, implementing given and using provided . The base class for proxy type. The interfaces that proxy type should implement. The options for proxy generation process. of proxy. Creates the proxy type for interface proxy with target for given interface, implementing given on given and using provided . The interface proxy type should implement. The additional interfaces proxy type should implement. Actual type that the proxy type will encompass. The options for proxy generation process. of proxy. Creates the proxy type for interface proxy with target interface for given interface, implementing given on given and using provided . The interface proxy type should implement. The additional interfaces proxy type should implement. Actual type that the proxy type will encompass. The options for proxy generation process. of proxy. Creates the proxy type for interface proxy without target for given interface, implementing given and using provided . The interface proxy type should implement. The additional interfaces proxy type should implement. The options for proxy generation process. of proxy. Gets the proxy builder instance used to generate proxy types. The proxy builder. For interface proxies, this will point to the on the target class