bool IgnoredByAttribute(Type type) { foreach (Type attributeType in AttributesToIgnore) { if (type.GetCustomAttributes(attributeType, false).Length > 0) return true; } return false; }