简体   繁体   English

C#:Func <>用作方法的返回值是什么意思?

[英]C#:What does Func<> mean when used as return value of a method?

What does the following method return ? 以下方法返回什么? An array of function returning HashSet ? 返回HashSet的函数数组?

    internal override Func<HashSet<char>>[] GetCompactableCharSets()
    {
        return new Func<HashSet<char>>[0];
    }

What does the following method return ? 以下方法返回什么?

By signature , this is a method that returns an array of functions with no arguments returning HashSet<char> . 通过签名 ,此方法将返回不带参数的函数数组,返回HashSet<char>

The concrete implementation returns an empty array described above. 具体实现返回上述空数组。

是的,返回一个返回HashSet的函数的数组。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM