Recent snippets

Popular snippets

  • Composable WCF Web API using Async

    A functional wrapper around the new WCF Web APIs (http://wcf.codeplex.com/). Composition is achieved through the use of the HttpRequestMessage -> Async signature. Pushing the app calls in the MessageHandler intercepts all requests and allows you to take control at the earliest point possible before operation selection occurs. Extending this slightly to call the innerChannel's SendAsync would allow you to create a middleware layer that would work both with this and other, normal Web API services.

    63 people like this

    Posted: 15 years ago by Ryan Riley

  • Units of Measure

    Show's how to define units of measure to add stronger typing to your numerical functions.

    75 people like this

    Posted: 15 years ago by Robert Pickering

  • Dynamic operator using Reflection

    Demonstrates how to implement the dynamic operator (?) using .NET Reflection. The implementation supports calling constructors, propreties and methods using simple overload resolution (based on parameter count). It handles instance as well as static members.

    74 people like this

    Posted: 14 years ago by Tomas Petricek

Snippets by tags

algorithms (25) math (35) design patterns (18) json (16) tryfsharp (48) computation builder (17) fold (22) lazy (20) async (98) computation expression (15) recursion (33) kata (17) f# (43) regex (17) dsl (23) sequence (32) seq (54) tutorial (17) html (16) pattern matching (15)

View all...

Database contains 3208 snippets out of which 1719 is public.