lambda表达式不使用委托(delegate) 用FUNC

lLambda不使用delegate关键字,而使用  Lambda运算符 => goes to
l    1.Func<int,string> getInput = (int age) => {
l         return Console.ReadLine() + age;
l    };
l可以不显示声明参数的数据类型(编译器可以根据委托参数推断)
l    2.Func<int,string> getInput = (age) => {
l         return Console.ReadLine() + age;
l    };
重来没有接触过,零基础学习软件编程,一个字累
原文地址:https://www.cnblogs.com/hsha/p/4739672.html