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? -

aspxgridview - Devexpress grid - header filter does not work if column is initially hidden -

c# - How to execute a particular part of code asynchronously in a class -