DispatchProxy 类

定义

提供实例化代理对象和处理其方法调度的机制。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
继承
DispatchProxy

构造函数

DispatchProxy()

方法

Create<T,TProxy>()

创建一个派生自类 TProxy 的对象实例,并实现接口 TCreates 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.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
Invoke(MethodInfo, Object[])

每当对生成的代理类型调用任何方法时,都会调用此方法来调度控件。Whenever any method on the generated proxy type is called, this method is invoked to dispatch control.

MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于