user496949 user496949 - 3 months ago 15
C# Question

()=>getItem("123") is Func(bool) or Func(string,bool)

For lambda expresssion

()=>getItem("123")
, is it Func(bool) or Func(string,bool), suppose getItem return bool.

Answer

It's a Func<bool>.

The clue is in the () => part: This means that the function has no input parameters.