Beispiel #1
0
        static void Main(string[] args)
        {
            Assembly asm = GetAssembly("Faker.dll");

            AsmAnalyzer asmAnalizer = new AsmAnalyzer(asm);

            foreach (var nmsp in asmAnalizer.GetNamespaces())
            {
                Console.WriteLine(nmsp.Name);
                foreach (var entity in nmsp.Entities)
                {
                    Console.WriteLine("---" + entity.GetName());
                    foreach (var field in entity.Fields)
                    {
                        Console.WriteLine("------" + field.GetName());
                    }
                    foreach (var property in entity.Properties)
                    {
                        Console.WriteLine("------" + property.GetName());
                    }
                    foreach (var method in entity.Methods)
                    {
                        string str = method.GetName();
                        Console.WriteLine("------" + str);
                    }
                    Console.WriteLine();
                }
            }

            Console.WriteLine("Hello world!");
        }
Beispiel #2
0
 public MainViewModel()
 {
     asm           = null;
     currEntity    = null;
     currNamespace = null;
     ExitCommand   = new BrowserCommand(ShutdownApp);
     LoadCommand   = new BrowserCommand(LoadAssembly);
 }
Beispiel #3
0
        protected void LoadAssembly(object o)
        {
            IOService service = new IOService();
            string    path    = service.OpenFileDialog();

            asm = new AsmAnalyzer();
            asm.SetAssembly(service.GetAssembly(path));
            OnPropertyChanged(nameof(Namespaces));
            Namespace = null;
        }