C# Port

Simple translation.
Merge pull request #6 from BerengerMantoue/bm_csharp

C# Port