当前位置:百科知识 > 工学7

问题描述:

[单选] 委托类型DG1的定义为delegate float DG1(int a,ref double b);那么下列委托对象的创建表达式中合法的有:()。
A.DG 1dg1=delegate {return 0.3;}; B.DG 1dg2=delegate {return a;}; C.DG 1dg3=delegate (int a,ref double b) {return a;}; D.G 1dg4=delegate (int a,ref double b) {return a/b;};
参考答案:查看
答案解析:
☆收藏

随机题目