ReflectionHelpers.CreateFuncOfType(Type, Func<Object>) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a Func<TResult> delegate for a given Func<TResult> delegate.
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)
Parameters
- typeArg
- Type
The T
type argument for the returned function's return type.
Returns
An instance of Func<TResult>, typed as Func<TResult>.