The extension method IsStatic() checks if the type is a class that is not sealed and abstract at the same time:
public static bool IsStatic(this Type type)
{
return type.IsClass && !(type.IsSealed && type.IsAbstract);
}
Shouldn't the method check if it is sealed and abstract?
public static bool IsStatic(this Type type)
{
return type.IsClass && type.IsSealed && type.IsAbstract;
}