标签:
Lambda表达式
delegate bool DelDemo(int a, int b);
DelDemo fun = delegate(int a,int b) { return a > b; };
Console.WriteLine(fun(1, 3));
DelDemo funLambda = (int a, int b) => a > b;
Console.WriteLine(funLambda(1,3));
标签:
原文地址:http://www.cnblogs.com/hsha/p/4739667.html