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(Tkeyval obj)
 {
     if (TindexesU.ContainsKey(obj))
     {
         Ukeyval val = TindexesU [obj];
         TindexesU.Remove(obj);
         UindexesT.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(Tkeyval obj)
 {
     return(TindexesU.ContainsKey(obj) || UindexesT.ContainsValue(obj));
 }