namespace _7._16day01
{
internal class Program
{
static void Main(string[] args)
{
Action<string, int> t2 = (x, y) => { Console.WriteLine(x+y); };
Action t1 = () => { Console.WriteLine("lamadab"); };
Func<int ,int ,int > Add = (x, y) => { return x + y; };
t1();
t2("你好",250);
Console.WriteLine(Add(12, 24));
}
}
}
在Action里面传入参数变量 action是不需要返回值的
在Func里面也要传入参数变量 但是最后一个是返回值类型

