Simpler & safer C# port with less duplication
C#: Test project build fix due to missing file
C#: LINQ sugar for Regex match binding setup
Merge pull request #398 from atifaziz/cs-funk

C# port reviewed for simplicity, safety and duplication