コード例 #1
0
        // This method displays the contents of the Dependency Table.
        public void Display()
        {
            Console.Write("\n \n \n DEPENDENCY TABLE CONTENTS");
            Console.Write("\n --------------------------\n\n");

            DependencyModel dm = new DependencyModel();
            foreach (KeyValuePair<string, List<string>> item in dm.dictionary())
            {
                Console.WriteLine();
                Console.WriteLine(" C# FILE  -->  " + item.Key + ": is dependent on the following files \n");
                foreach (string value in item.Value)
                    Console.WriteLine("\t" + value);
                Console.WriteLine("-------------------------------------------\n\n");
            }
        }
コード例 #2
0
 // This method dispalys the total number of dependencies detected.
 public void displaySum()
 { 
     DependencyModel dm = new DependencyModel();
     Dictionary<string, List<string>> DepTable = dm.dictionary();
     Console.WriteLine(" Total Dependent files found by the Analyzer: {0}", DepTable.Count);
 }