This constructs a new instance of the delegate type using the constructor MyDelegate (object, IntPtr).
通过使用MyDelegate (object, IntPtr)构造器,就构建了一个委托类型的新实例。
There also the compiler ensures that the return value of EndInvoke is the same as the return value of the delegate type (this type is an int in our example).
编译器同时也会确保EndInvoke返回值类型和委托返回类型一致(在我们的例子中,这个类型是int)。
You can use the delegate type to declare a variable that can refer to any method with the same signature as the delegate.
可以使用委托类型来声明一个变量,该变量可以引用与委托签名相同的所有方法。
An event handler, a delegate type, that invokes the exposed method can be added to any event as long as the handler and event signatures match.
只要事件处理程序和事件签名匹配,就可以将调用已公开方法的该事件处理程序(委托类型)添加到任何事件。
Completes the dynamic method and creates a delegate that can be used to execute it, specifying the delegate type and an object the delegate is bound to.
完成动态方法并创建一个可用于执行该方法的委托,指定委托类型和委托绑定到的对象。
Completes the dynamic method and creates a delegate that can be used to execute it, specifying the delegate type and an object the delegate is bound to.
完成动态方法并创建一个可用于执行该方法的委托,指定委托类型和委托绑定到的对象。
应用推荐