Which is characteristic of the Business Delegate pattern?()
您写了下面这段代码 public delegate void FaxDocs(object sender, FaxArgs args); 您需要创建一个事件去调用FaxDocs,您应该使用哪个代码片段?()
Delegate,也就是委托,是可用于调用其他对象方法的对象,该类型提供函数指针的功能。
声明一个委托类型public delegate int myCallBack(int x); 则以下语句可以和委托myCallBack绑定的方法是()
You need to write a multicast delegate that accepts a DateTime argument.Which code segment should you use?()
有声明语句:delegate void TimeDelegate(string s),则以下语句可以和委托TimeDelegate绑定的方法是()
委托类型DG1的定义为delegate float DG1(int a,ref double b);那么下列委托对象的创建表达式中合法的有:()。
一个类的delegate(代理)的作用不正确的是()
最近,您创建了一个应用程序,包括如下所示的代码。 public delegate string GetFileContentsDel ( ); public string GetFileContents ( ) { //Process file and return results } 现在,您需要以异步方式调用 GetFileContents 方法。 您必须确保您用来调用 GetFileContents 方法的代码将继续处理其他用户的说明,并显示结果,尽快完成的 GetFileContents 方法的处理。你应该做什么?()
Delegate,也就是委托,是可用于调用其他对象方法的对象,该类型提供函数指针的功能。