摘要: 先看一个简单的delegate的例子 public static bool IsOdd(int i) { return (i & 1) == 1; } public delegate bool NumberTester(int i); public static void PrintMatchingNumbers(int from, int to, NumberTester filter)... 阅读全文