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

android - Spacing between the stars of a rating bar? -

c++ - How to modify context menu of internet explorer using IDocHostUIHandler::ShowContextMenu? -

c# - Asterisk click to call -