public static IEnumerable <Type> AncestorsAndSelf(Type type) { if (type == null) { throw new ArgumentNullException(nameof(type)); } return(TypeTree.AncestorsAndSelf(type)); }