programforjoy
programforjoy

Reputation: 499

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 ?

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

Upvotes: 1

Views: 173

Answers (2)

Ivan Stoev
Ivan Stoev

Reputation: 205619

What does the following method return ?

By signature, this is a method that returns an array of functions with no arguments returning HashSet<char>.

The concrete implementation returns an empty array described above.

Upvotes: 1

sborfedor
sborfedor

Reputation: 312

Yep, returning an empty array of function returning HashSet.

Upvotes: 0

Related Questions