static void Main(string[] args) { Console.Write("\n Demonstrating Dependency Analysis"); Console.Write("\n ===================================="); // build demo table DepAnalysis tt = new DepAnalysis(); //tt.add("Type_X", "File_A"); //tt.add("Type_X", "File_B"); //tt.add("Type_Y", "File_A"); //tt.add("Type_Z", "File_C"); tt.show(); // access elements in table Console.Write("\n TypeTable contains types: "); foreach (var elem in tt.table) { Console.Write("{0} ", elem.Key); } Console.Write("\n\n"); Console.ReadLine(); }
static void Main() { DepAnalysis analyzer = new DepAnalysis(); analyzer.AddFile("../../../TestTypeAnaylyzer"); analyzer.collectTypeInfo("../../../TestTypeAnaylyzer"); analyzer.ConstructDependency(); Repository repo = Repository.getInstance(); repo.WalkTheGraph(); Console.ReadKey(); }