Func

Posted Hello,World

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Func相关的知识,希望对你有一定的参考价值。

 Func<List<int>, string> getStr = (list) =>
                {
                    var returnStr = "";
                    if (list.Any())
                    {
                        list.ForEach(o => returnStr += o);
                    }
                    return returnStr;
                };
  • Func<T1,T2> T1为输入参数,T2为输出参数

以上是关于Func的主要内容,如果未能解决你的问题,请参考以下文章

C# fun

Go 系列教程 —— 17. 方法

Python面向对象学习之八,装饰器

js中的Object.assign接受两个函数为参数的时候会发生什么?

python threading超线程使用简单范例的代码

委托代码func和Action的基本用法