public DistinctTypeList AddRange(DistinctTypeList typeList) { foreach (var type in typeList.GetAllTypes()) { Add(type); } return(typeList); }
/// <summary> /// check all properties of types stored in distinctTypeList /// </summary> /// <param name="distinctTypeList"></param> /// <param name="attributesToCheck"></param> /// <returns></returns> public List <AttributeCheckResult> CheckPropertiesForAttributes(DistinctTypeList distinctTypeList, Type[] attributesToCheck) { var results = new List <AttributeCheckResult>(); foreach (var type in distinctTypeList.GetAllTypes()) { results.AddRange(CheckPropertiesOfTypeForAttributes(type, attributesToCheck)); } return(results); }
private List <AttributeCheckResult> CheckTypeAttributes(DistinctTypeList typeList, Type[] attributesToCheck, IEnumerable <Type>?typesToIgnore = null) { var filteredTypeList = typeList.GetAllTypes().Where(w => typesToIgnore == null || !typesToIgnore.Contains(w)); return(_attributeChecker.CheckPropertiesForAttributes(filteredTypeList, attributesToCheck)); }