public void LoadAssembly() { ModuleDefinition module = ModuleDefinition.ReadModule(FullPath, App.CurrentProject.ReaderParams); if (module != null) { // Add the assembly module to our dictionary assemblyData = new AssemblyData(FullPath, module); // Create global namespace assemblyData.AddNamespace("", new NamespaceData("-")); NamespaceData namespaceData; // Find namespaces in the loaded assembly foreach (TypeDefinition type in module.Types) { bool existingNamespace = assemblyData.Namespaces.TryGetValue(type.Namespace, out namespaceData); if (!existingNamespace) { namespaceData = new NamespaceData(type.Namespace); assemblyData.AddNamespace(type.Namespace, namespaceData); } namespaceData.Add(type); } } }