/// <summary>Initializes a new instance of the <see cref="HierarchyTree"/> class.</summary> public HierarchyTree() { Assembly = null; Blacklist = new BlacklistElements(); ExportedTypes = new List <Type>(); Namespaces = new List <AssemblyScope.AssemblyScope>(); Classes = new List <HierarchyNode>(); Delegates = new List <HierarchyNode>(); Enumerators = new List <HierarchyNode>(); Events = new List <HierarchyNode>(); Interfaces = new List <HierarchyNode>(); Structures = new List <HierarchyNode>(); }
/// <summary>Initializes a new instance of the <see cref="HierarchyTree"/> struct.</summary> /// <param name="location">The assembly location.</param> public HierarchyTree(string location) : this() { Assembly = Assembly.LoadFile(location); Blacklist = new BlacklistElements(location); ExportedTypes = Assembly.GetExportedTypes().ToList(); Namespaces = ReadNamespaces(); Classes = ReadClasses(); Delegates = ReadDelegates(); Enumerators = ReadEnumerators(); Events = ReadEvents(); Interfaces = ReadInterfaces(); Structures = ReadStructures(); }