My C# snippet