Added C# sample and fixes to F#