delegate type 双语例句
全部
1·The declaration of a delegate type is similar to a method signature.
委派型别的宣告与方法签章类似。
2·This constructs a new instance of the delegate type using the constructor MyDelegate (object, IntPtr).
通过使用MyDelegate (object, IntPtr)构造器,就构建了一个委托类型的新实例。
3·Whenever a new set of argument types or return value type is needed, a new delegate type must be declared.
当需要一组新的引数型别或传回值型别时,必须宣告一个新的传回型别。
4·You can use the delegate type to declare a variable that can refer to any method with the same signature as the delegate.
可以使用委托类型来声明一个变量,该变量可以引用与委托签名相同的所有方法。
5·Once we have a delegate type in the metadata and a target function we'd like to call, we must form an instance of the delegate over a target.
在一个元数据中,一旦我们有了一个委托类型和一个我们想要调用的目标函数,我们必须从目标形成一个实例。
6·Each delegate type describes the number and types of the arguments, and the type of the return value of methods that it can encapsulate.
每一个委派型别说明了引数的数目和引数的型别,和它可以封装之方法的传回值型别。
7·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.
只要事件处理程序和事件签名匹配,就可以将调用已公开方法的该事件处理程序(委托类型)添加到任何事件。
8·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)。
9·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.
完成动态方法并创建一个可用于执行该方法的委托,指定委托类型和委托绑定到的对象。
10·The ExecuteFromPool method accepts a delegate and arguments in addition to the desired type.
ExecuteFromPool方法除了接受所需类型以外,还接受委托和参数。
