//无参无返回值
Action at = () =>{Console.WriteLine("无参无返回"); }; at.Invoke();
//有参无返回值
Action<int>st1=(int value) => { Console.WriteLine("有参数{0}", value); };
//有参无返回值第二种表示方式——省略参数类型写法
Action<int>st1=( value) => { Console.WriteLine("有参数{0}", value); };
//有参有返回值
Func<string, int> st3 = (value) =>
{
Console.WriteLine("有参数有返回值{0}", value);
return 1
};