private void CheckItemAt(TDeclarationSpecific item) { if (!this.values.ContainsKey(item)) { item.Disposed += item_Disposed; this.values._Add(item, this.ParentTypes.Values[this.values.Count].UniqueIdentifier); } }
private bool CheckItemAt(TDeclarationSpecific item) { if (this.values.ContainsKey(item)) { return(false); } else { this.values._Add(item, this.ParentTypes.GetWrapper(item, this.ParentTypes.Parent)); item.Disposed += item_Disposed; return(true); } }
public override bool Contains(TDeclarationSpecific value) { if (this.values.Values.Contains(value)) { return(true); } foreach (var item in this.ParentTypes.Original.Values) { if (CheckItemAt(item) && this.values[item] == value) { return(true); } } return(false); }