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!"); }
public MainViewModel() { asm = null; currEntity = null; currNamespace = null; ExitCommand = new BrowserCommand(ShutdownApp); LoadCommand = new BrowserCommand(LoadAssembly); }
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; }