action,func简洁用法

 new Action(() => { }).Invoke();
new Action(() => { })(); 
 
new Func<int, int>(s => { return s; }).Invoke(1);
 
new Func<int, List<int>>(s => { return new List<int>{1,2,3,4,5}; }).Invoke(1);
原文地址:https://www.cnblogs.com/jiamiemie/p/10483839.html