some common csharp utility