c# - How to call invoke when use Func<string, bool> -


in function test(func<string,bool> f), how call f.invoke()? received error delegate 'func' not take '0' arguments

the delegate func<string, bool> delegate takes string argument , returns bool. invoke it, need supply string.

e.g., either should work

f("foo"); f.invoke("foo"); 

Comments