文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>C# 委托数组.

C# 委托数组.

时间:2010-10-07  来源:胖子黎

using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace ConsoleApplication1 { /// ///定义两个操作方法 /// class MathOperations { public static double MultilyByx2(double value) { return value * 2; } public static double Square(double value) { return value * value; } } /// /// 定义委托 /// /// /// delegate double DoubleOp(double value); class Program { /// /// 委托数组 /// /// static void Main(string[] args) { DoubleOp[] operations = { new DoubleOp(MathOperations.MultilyByx2), new DoubleOp(MathOperations.Square) }; for (int i = 0; i
相关阅读 更多 +
排行榜 更多 +
奇境小镇MOD作弊菜单

奇境小镇MOD作弊菜单

角色扮演 下载
黑暗荒野2无限金币版

黑暗荒野2无限金币版

角色扮演 下载
骑战烈火之剑作弊菜单版

骑战烈火之剑作弊菜单版

角色扮演 下载