Beispiel #1
0
 /// <summary>
 /// Remove the specified object.
 /// </summary>
 /// <returns><c>true</c>, if the object was in the dictionary and could be removed, <c>false</c> otherwise.</returns>
 /// <param name="obj">Object.</param>
 public bool Remove(Ukeyval obj)
 {
     if (UindexesT.ContainsKey(obj))
     {
         Tkeyval val = UindexesT [obj];
         UindexesT.Remove(obj);
         TindexesU.Remove(val);
         return(true);
     }
     return(false);
 }
Beispiel #2
0
 /// <summary>
 /// Contains the specified object.
 /// </summary>
 /// <returns><c>true</c>, if the dictionary contains the object, <c>false</c> otherwise.</returns>
 /// <param name="obj">Object.</param>
 public bool Contains(Ukeyval obj)
 {
     return(UindexesT.ContainsKey(obj) || TindexesU.ContainsValue(obj));
 }