Settings\Items\UnknownItem.cs (20)
15public IReadOnlyList<SettingBase> Children => _mutableChildren.Select(c => c.Value).ToList();
21private Dictionary<SettingBase, SettingBase> _mutableChildren;
27_mutableChildren = new Dictionary<SettingBase, SettingBase>();
32foreach (var descendant in descendants)
40public UnknownItem(string name, IReadOnlyDictionary<string, string>? attributes, IEnumerable<SettingBase>? children)
49_mutableChildren = new Dictionary<SettingBase, SettingBase>();
53foreach (var child in children)
61public override SettingBase Clone()
73internal bool Add(SettingBase setting)
120internal void Remove(SettingBase setting)
137if (_mutableChildren.TryGetValue(setting, out var currentSetting) && _mutableChildren.Remove(currentSetting))
189var otherChildren = new Dictionary<SettingBase, SettingBase>(unknown._mutableChildren);
190foreach (var child in Children)
192if (otherChildren.TryGetValue(child, out var otherChild))
225foreach (var child in item.Children)
227if (_mutableChildren.TryGetValue(child, out var existingChild))