Convenient extension methods for C#