c# sample codes