예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
     }
 }
예제 #3
0
 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);
 }