DispatchProxy Class

Definition

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

public abstract class DispatchProxy
Inheritance
DispatchProxy

Constructors

Methods

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

Product Versions
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9
.NET Framework 4.7 (package-provided), 4.7.1 (package-provided), 4.7.2 (package-provided), 4.8 (package-provided)
.NET Standard 2.0 (package-provided), 2.1 (package-provided), 2.1
UWP 10.0