C# code samples