added syntax highlighting to C# snippets to match the updated documentation

Makes the readme slightly more readable with a bit of C# syntax highlighting which now also matches the updated doc.