Lambda 表达式
原文发布时间为:2011-03-25 —— 来源于本人的百度文章 [由搬家工具导入]
http://msdn.microsoft.com/en-us/library/bb397687.aspx
(input parameters) => expression 前面为输入,后面为输出结果
(x, y) => x == y
(int x, string s) => s.Length > x
() => SomeMethod()
(input parameters) => {statement;}
Func<int, bool> myFunc = x => x == 5;
bool result = myFunc(4); // returns false of course