user496949 user496949 - 1 year ago 82
C# Question

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

For lambda expresssion

, is it Func(bool) or Func(string,bool), suppose getItem return bool.

Answer Source

It's a Func<bool>.

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

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download