public void DrawAllRelation(DllReader dll) { foreach (DescriptionClass dc in DescriptionClass.PutTypeInList(dll)) { if (dc._mainType.IsInterface) { foreach (Type type in dc.SortListType(dc._subClasses, dc._mainType)) { DrawRelationInterface(type.Name, dc.GetName(), shapeDict); } } } foreach (DescriptionClass dc in PutClassInList(dll)) { foreach (Type type in dc.SortListType(dc._subClasses, dc._mainType)) { if (type.IsInterface) { DrawRelationInterface(type.Name, dc.GetName(), shapeDict); } else { DrawRelation(type.Name, dc.GetName(), shapeDict); } } foreach (Type type in dc._nestedClass) { DrawRelationNested(type.Name, dc.GetName(), shapeDict); } } }
public int CountSubClass( DescriptionClass dc ) { int counter = 0; foreach ( Type type in dc.SortListType( dc._subClasses, dc._mainType ) ) { counter++; } return counter; }
public int CountSubClass(DescriptionClass dc) { int counter = 0; foreach (Type type in dc.SortListType(dc._subClasses, dc._mainType)) { counter++; } return(counter); }
public static List<DescriptionClass> PutTypeInList(DllReader dllReader) { List<DescriptionClass> allClasses = new List<DescriptionClass>(); DescriptionClass dClass; foreach (Type type in dllReader.GetAllTypes()) { dClass = new DescriptionClass(dllReader, type); allClasses.Add(dClass); } return allClasses; }
public static List <DescriptionClass> PutTypeInList(DllReader dllReader) { List <DescriptionClass> allClasses = new List <DescriptionClass>(); DescriptionClass dClass; foreach (Type type in dllReader.GetAllTypes()) { dClass = new DescriptionClass(dllReader, type); allClasses.Add(dClass); } return(allClasses); }
public List <DescriptionClass> PutClassInList(DllReader dll) { List <DescriptionClass> lDc = new List <DescriptionClass>(); foreach (DescriptionClass dc in DescriptionClass.PutTypeInList(dll)) { if (!dc._mainType.IsInterface && !dc._mainType.IsNested) { lDc.Add(dc); } } return(lDc); }
public int CountNbTimeCall(Type type, DllReader test) { int counter = 0; foreach (DescriptionClass dc in DescriptionClass.PutTypeInList(test)) { if (!dc._mainType.IsInterface) { foreach (Type t in dc._subClasses) { if (t == type) { counter++; } } } } return(counter); }