Class ReflectionHelpers
- Namespace
- Microsoft.VisualStudio.Composition
- Assembly
- Microsoft.VisualStudio.Composition.dll
public static class ReflectionHelpers
- Inheritance
-
ReflectionHelpers
- Inherited Members
Methods
CreateFuncOfType(Type, Func<object>)
Creates a Func<TResult> delegate for a given Func<TResult> delegate.
public static Func<object> CreateFuncOfType(Type typeArg, Func<object> func)
Parameters
typeArg
TypeThe
T
type argument for the returned function's return type.func
Func<object>The function that produces the T value typed as object.
Returns
- Func<object>
An instance of Func<TResult>, typed as Func<TResult>.