ReflectionHelpers.CreateFuncOfType(Type, Func<Object>) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
Func<TResult>为给定委托创建委托 Func<TResult> 。
public static Func<object> CreateFuncOfType (Type typeArg, Func<object> func);
static member CreateFuncOfType : Type * Func<obj> -> Func<obj>
Public Function CreateFuncOfType (typeArg As Type, func As Func(Of Object)) As Func(Of Object)
参数
- typeArg
- Type
返回的函数的返回类型的 T 类型参数。
返回
的实例 Func<TResult> ,类型化为 Func<TResult> 。