1. C# sample code