Practice mode C#

In the C# delegate type Func, what is bool?

Correct answer B. The return type

Explanation

For the generic Func delegates, the last type argument is always the return type and the earlier ones are parameter types. So Func represents a method taking an int and a string and returning a bool. Action delegates return void, so all of their type arguments are parameters, and Predicate takes one T and returns bool.

Report a problem

Answer checked How we write and check questions

Tip: press A, B, C or D to answer, and N for the next question.

Advertisement

Have a question about this answer?

Your email address will not be published. Required fields are marked *

Links and website addresses are not allowed in comments.