NamespaceNode GetOrCreateNamespace(AssemblyNode assembly, string namespaceName) { NamespaceNode result; var asmDef = loader.GetCecilObject(assembly.AssemblyInfo.UnresolvedAssembly); if (!namespaceMappings.TryGetValue(namespaceName + "," + asmDef.FullName, out result)) { result = new NamespaceNode(namespaceName); assembly.AddChild(result); namespaceMappings.Add(namespaceName + "," + asmDef.FullName, result); } return result; }
AssemblyNode GetOrCreateAssembly(IAssembly asm) { AssemblyNode result; if (!assemblyMappings.TryGetValue(asm, out result)) { result = new AssemblyNode(asm); assemblyMappings.Add(asm, result); } return result; }
public static BitmapSource GetIcon(AssemblyNode module) { return Assembly; }