added C# version
Merge pull request #3 from stannedelchev/master

Added C# version.  Thanks so much!