如何在使用Func <string,bool>时调用invoke

use*_*949 2 .net c# lambda

在函数中Test(Func<string,bool> f),如何调用f.invoke()?我收到错误委托'Func'不接受'0'参数

Mat*_*hen 5

bool b = f(someString);
Run Code Online (Sandbox Code Playgroud)

要么:

bool b = f.Invoke(someString);
Run Code Online (Sandbox Code Playgroud)