Recent snippets

Popular snippets

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

    67 people like this

    Posted: 10 years ago by Tomas Petricek

  • Asynchronous sequences

    An asynchronous sequence is similar to the seq type, but the elements of the sequence are generated asynchronously without blocking the caller as in Async. This snippet declares asynchronous sequence and uses it to compare two files in 1k blocks.

    109 people like this

    Posted: 10 years ago by Tomas Petricek

  • Implementing active objects with a MailboxProcessor

    Mailbox processors can easily be used to implement active objects. This example shows how to do that with a reusable wrapper type and minimal boilerplate code in the actual class definitions. Supports both asynchronous calls and synchronous calls. For the latter case, exceptions are automatically propagated back to the caller.

    90 people like this

    Posted: 10 years ago by Wolfgang Meyer

Snippets by tags

staging (18) recursion (32) html (15) computation builder (14) math (35) monad (22) fparsec (15) json (14) sequences (48) wpf (20) design patterns (18) game (32) generic programming (17) tutorial (17) seq (54) lists (14) parsing (26) quotations (21) kata (17) regex (16)

View all...

Database contains 2881 snippets out of which 1672 is public.