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

Popular posts from this blog

SAP Web Service from .NET via WCF -

Optimized Line drawing in QT -

datetime - str to time in python -