Recent snippets

Popular snippets

  • Minimal XML DSL

    This snippet provides a very small internal DSL for creating and querying XML using the underlying XLinq classes.

    374 people like this

    Posted: 15 years ago by Blake Coverett

  • FSX Structure

    I use this basic template when writing .fsx files that I might want to compile. It adjusts the difference in command line/entrypoint handling between a script and a compiled assembly. This example shows the details for a WPF script — replace the #r's and/or remove the STAThread for a WinForms or Console script.

    127 people like this

    Posted: 15 years ago by Blake Coverett

  • 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: 15 years ago by Tomas Petricek

Snippets by tags

game (32) agent (20) tutorial (17) reflection (19) async (98) parsing (28) quotations (21) computation builder (17) design patterns (18) http (18) array (22) html (16) generic programming (17) sequences (48) collections (16) staging (18) dsl (23) list (56) wpf (20) web (29)

View all...

Database contains 3209 snippets out of which 1719 is public.