public static IEnumerable <Type> SelfAndBaseTypes(this Type type) { if (type.IsInterface()) { List <Type> list = new List <Type>(); TypeHelper.AddInterface(list, type); return(list); } return(type.SelfAndBaseClasses()); }