Func<T>是用于方法的预定义委托类型,该方法返回该类型的某些值
T。
换句话说,您可以使用此类型来引用返回的某些值的方法
T。例如
public static string GetMessage() { return "Hello world"; }可以这样引用
Func<string> f = GetMessage;

Func<T>是用于方法的预定义委托类型,该方法返回该类型的某些值
T。
换句话说,您可以使用此类型来引用返回的某些值的方法
T。例如
public static string GetMessage() { return "Hello world"; }可以这样引用
Func<string> f = GetMessage;