Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

DispatchProxy Class

Definition

Namespace:
System.Reflection
Assembly:
System.Reflection.DispatchProxy.dll
Assemblies:
netstandard.dll, System.Reflection.DispatchProxy.dll
Assembly:
netstandard.dll
Source:
DispatchProxy.cs
Source:
DispatchProxy.cs
Source:
DispatchProxy.cs
Source:
DispatchProxy.cs
Source:
DispatchProxy.cs

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Provides a mechanism for instantiating proxy objects and handling their method dispatch.

public ref class DispatchProxy abstract
public abstract class DispatchProxy
type DispatchProxy = class
Public MustInherit Class DispatchProxy
Inheritance
DispatchProxy

Constructors

Name Description
DispatchProxy()

Initializes a new instance of the DispatchProxy class.

Methods

Name Description
Create(Type, Type)

Creates an object instance that derives from class proxyType and implements interface interfaceType.

Create<T,TProxy>()

Creates an object instance that derives from class TProxy and implements interface T.

Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
Invoke(MethodInfo, Object[])

Whenever any method on the generated proxy type is called, this method is invoked to dispatch control.

MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to


Feedback

Was this page helpful?