Adding C# code snippet