1 <?xml version="1.0" encoding="utf-8"?>
4 <name>System.Reflection.DispatchProxy</name>
7 <member name="T:System.Reflection.DispatchProxy">
8 <summary>Provides a mechanism for instantiating proxy objects and handling their method dispatch.</summary>
10 <member name="M:System.Reflection.DispatchProxy.#ctor" />
11 <member name="M:System.Reflection.DispatchProxy.Create``2">
12 <summary>Creates an object instance that derives from class <typeparamref name="TProxy" /> and implements interface <typeparamref name="T" />.</summary>
13 <typeparam name="T">The interface the proxy should implement.</typeparam>
14 <typeparam name="TProxy">The base class to use for the proxy class.</typeparam>
15 <exception cref="T:System.ArgumentException">
16 <typeparamref name="T" /> is a class, or <typeparamref name="TProxy" /> is sealed or does not have a parameterless constructor.</exception>
17 <returns>An object instance that implements <typeparamref name="T" />.</returns>
19 <member name="M:System.Reflection.DispatchProxy.Invoke(System.Reflection.MethodInfo,System.Object[])">
20 <summary>Whenever any method on the generated proxy type is called, this method is invoked to dispatch control.</summary>
21 <param name="targetMethod">The method the caller invoked.</param>
22 <param name="args">The arguments the caller passed to the method.</param>
23 <returns>The object to return to the caller, or <see langword="null" /> for void methods.</returns>