Table of Contents

Method AsFunc

Namespace
Innova.Prism.Library.Security
Assembly
Innova.Prism.Library.dll

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

Returns

Func<object>