/// <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); }
/// <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)); }