c# code sample