delegate n. 1.委员,代表,特派员。 2.〔美国〕(Virginia, West Virginia, Maryland 等州的)众议院议员。 3.(众议院中准州地区的)代表〔无投票权〕。 delegates without power to vote 列席代表。 a walking delegate (工会的)交涉代表。 vt. 1.派…做代表。 2.委任,委托。 delegate authority to sb. 授权某人。
The corresponding parameter ' s type , in the following called p , is a delegate type with a return type that involves one or more method type parameters 相应的参数类型,下称p ,是一个代理类型并且具有一个返回值,而该返回值关联一或多个函数类型参数。
That is , the delegate type must have an extra parameter at the beginning of its formal parameter list , of the same type as the class the method belongs to 也就是说,委托类型必须在其形参表的开头有一个额外参数,该参数的类型必须与方法所属的类的类型相同。
This constructor is called by a compiler - generated delegate type to create a delegate based on the name of a static method and the type representing the class that defines that method 编译器生成的委托类型会调用此构造函数,以根据一个静态方法的名称和表示定义该方法的类的
This constructor is called by a compiler - generated delegate type to create a delegate based on the name of an instance method and an instance of the class that defines that method 编译器生成的委托类型会调用此构造函数,以根据实例方法名称和定义该方法的类的实例创建委托。
C version 2 . 0 has a new feature called method group conversion , which applies to concrete as well as generic delegate types , and enables you to write the previous line with this simplified syntax C # 2 . 0版具有称为方法组转换的新功能,此功能适用于具体委托类型和泛型委托类型,并使您可以使用如下简化的语法写入上一行:
Dynamic methods allow a more efficient implementation strategy in cases where the dynamic method signature matches an existing delegate type , because there is no need to create a dynamic assembly , module , or type 因为不需要创建动态程序集、模块或类型,动态方法可在动态方法签名与现有委托类型匹配时提供更有效的实现策略。此方法与使用
Because delegates can wrap the type information of static methods , which never executes remotely , your server applications must always declare a custom delegate type with custom parameters that , taken together , never match a static method that is callable on the server computer 由于委托可以包装静态方法(静态方法永远不会远程执行)的类型信息,因此服务器应用程序必须始终声明采用自定义参数的自定义委托类型,这些参数在一起永远不会匹配可以在服务器计算机上调用的静态方法。