delegate
摘要:
// 可以接受若干参数的委托 public delegate double Method( params int[] numbers); public class Demo { public double Times( params int[] numbers) { double result = 1; foreach (int i in numbers) result *= i; return result; } public double Div(params int[] numbers) { if (numbers == null || numbers.Length == 0) thro 阅读全文
posted @ 2011-09-06 13:49 乔乔lovefreedom 阅读(303) 评论(0) 推荐(0) 编辑