Coder Social home page Coder Social logo

delegating.aspnet's Introduction

Delegating.AspNet

Build Status NuGet MyGet

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.

Motivation

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#.

Implementations

Delegated implementations are available for the following interfaces:

Building

Building the solution requires MSBuild 15. On a Windows host, run build.cmd to build the solution and pack.cmd to build and pack.

delegating.aspnet's People

Contributors

atifaziz avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

fsateler

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.