Code snippet of C#