コード例 #1
0
        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);
                }
            }
        }
コード例 #2
0
 public int CountSubClass( DescriptionClass dc )
 {
     int counter = 0;
     foreach ( Type type in dc.SortListType( dc._subClasses, dc._mainType ) )
     {
         counter++;
     }
     return counter;
 }
コード例 #3
0
        public int CountSubClass(DescriptionClass dc)
        {
            int counter = 0;

            foreach (Type type in dc.SortListType(dc._subClasses, dc._mainType))
            {
                counter++;
            }
            return(counter);
        }
コード例 #4
0
 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;
 }
コード例 #5
0
        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);
        }
コード例 #6
0
        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);
        }
コード例 #7
0
        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);
        }