标签:return turn stat 委托 code inpu lin new pre
步骤1:
delegate bool IsGreaterThan(int inputNumber);
步骤2:
static bool IsGreaterThan3(int number) { return number > 3 ? true : false; }
步骤3:
IsGreaterThan igt = new IsGreaterThan(IsGreaterThan3); Console.WriteLine("Number is greater than 3 : {0}", igt(4));
标签:return turn stat 委托 code inpu lin new pre
原文地址:http://www.cnblogs.com/tjha/p/6612453.html