예제 #1
0
        public AssemblyListManager(ILSpySettings spySettings)
        {
            XElement doc = spySettings["AssemblyLists"];

            foreach (var list in doc.Elements("List"))
            {
                AssemblyLists.Add((string)list.Attribute("name"));
            }
        }
예제 #2
0
        public AssemblyListManager(ISettingsProvider settingsProvider)
        {
            this.settingsProvider = settingsProvider;
            XElement doc = this.settingsProvider["AssemblyLists"];

            foreach (var list in doc.Elements("List"))
            {
                var name = (string?)list.Attribute("name");
                if (name != null)
                {
                    AssemblyLists.Add(name);
                }
            }
        }