Method AsFunc
AsFunc(Action)
Converts the given Action to a Func<TResult> that always returns null. Useful if a method expects a Func<TResult> delegate and you don't want to return anything.
public static Func<object> AsFunc(this Action action)
Parameters
action
Action