In the function Test(Func<string,bool> f)
, how to call f.invoke()? I received the error
Delegate 'Func' does not take '0' arguments
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Generic Generics in Managed C++
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
or:
The delegate
Func<string, bool>
is a delegate that takes a string as an argument and returns bool. To invoke it, you need to supply a string.e.g., either should work