This is a .NET class library that provides delegating implementations of
common interfaces, typically those with a single method only, used in ASP.NET
applications. The actual implementation is delegated to an Action
or a
function (Func<>
, Func<,>
and so on depending on the arity of the original
method).
See also the Delegating library.
The .NET Framework has many interfaces with a single method, like
IDisposable
, that require the same and tedious boilerplate
class declaration and code each time. With closures and lambdas, such
interfaces can be implemented once and which delegate the actual
implementation to, well (surprise, surprise), a delegate! When
such interfaces need to be supplied, an implementation can be expressed more
succinctly.
Yes, this will be somewhat useless the day C# gains object expressions like F#.
Delegated implementations are available for the following interfaces:
Building the solution requires MSBuild 15. On a Windows host, run build.cmd
to build the solution and pack.cmd
to build and pack.