public AssemblyListManager(ILSpySettings spySettings) { XElement doc = spySettings["AssemblyLists"]; foreach (var list in doc.Elements("List")) { AssemblyLists.Add((string)list.Attribute("name")); } }
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); } } }