Snippets created by Tuomas Hietanen

  • csproj-file parsing with Linq2Xml

    This program reads all *.csproj-files from a path and then uses Linq2Xml to show data about the projects. This should be a good template for scripts to manage tons of c#-project files. F# and LINQ-to-XML is very powerful combination.

    6 people like this
    Posted: 7 months ago by Tuomas Hietanen

  • Simple Reactive Extensions Example

    Subject is a class that implements both IObservable<'T> and IObserver<'T>

    5 people like this
    Posted: 6 months ago by Tuomas Hietanen

  • Team Foundation Server: Check Out a file

    Team Foundation Server (TFS): Check Out a file.

    2 people like this
    Posted: 3 months ago by Tuomas Hietanen

  • csproj-file parsing with Linq2Xml - part 2

    This program reads all *.csproj-files from a path and then uses Linq2Xml to show or modify data about the projects. This should be a good template for scripts to manage tons of c#-project files. F# and LINQ-to-XML is very powerful combination.

    7 people like this
    Posted: 2 months ago by Tuomas Hietanen

  • Simple NumericLiteral example

    You can use numeric literals, constant expressions and operator overloading to make your own arithmetics. Useful in DSL languages. With NumericLiterals, you can use any of Q, R, Z, I, N, G. Basic syntax: [Number][Letter] will forward the call to the type NumericLiteral[Letter] to FromInt32 [Number] (or FromInt64 or FromString...)

    4 people like this
    Posted: 29 days ago by Tuomas Hietanen

  • F# 3.0 - EntityFramework Type Provider usage with Northwind DB

    A small sample how to use F# 3.0 Entity Framework (EF) Type Provider. Visual Studio 11 Beta (and Northwind sample database) needed.

    3 people like this
    Posted: 29 days ago by Tuomas Hietanen

  • Simple builder example: Nullable

    Simple Computational expressions / monad / builder -example, using .NET Nullable as demo.

    3 people like this
    Posted: 28 days ago by Tuomas Hietanen

  • Yet another Fibonacci

    In mathematics, the Fibonacci numbers or Fibonacci series or Fibonacci sequence are the numbers in the following integer sequence: [0; 1; 1; 2; 3; 5; 8; 13; 21; 34; 55; 89; 144; 233; 377; ...] http://en.wikipedia.org/wiki/Fibonacci_number

    4 people like this
    Posted: 11 days ago by Tuomas Hietanen