Recent snippets

Popular snippets

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

    124 people like this

    Posted: 14 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.

    73 people like this

    Posted: 14 years ago by Tomas Petricek

  • Hello world (F#)

    Classical "Hello world" example that prints a message to the console output. This version uses F# printfn function to do the printing.

    185 people like this

    Posted: 15 years ago by Tomas Petricek

Snippets by tags

html (16) http (18) seq (54) generic programming (17) regex (17) sequence (32) sequences (48) parsing (28) dsl (23) web (29) computation builder (17) silverlight (22) pattern matching (15) algorithms (26) mailboxprocessor (27) f# (43) math (35) array (22) reflection (19) game (32)

View all...

Database contains 3206 snippets out of which 1719 is public.