Useful extension methods to .NET Framework classes and interfaces