Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Remove() [1/4]

bool ICollection< KeyValuePair< TKey, TValue > >. System.Collections.Generic.SortedDictionary< TKey, TValue >.Remove ( KeyValuePair< TKey, TValue > keyValuePair)
inlineprivate

Definition at line 649 of file SortedDictionary.cs.

650 {
651 SortedSet<KeyValuePair<TKey, TValue>>.Node node = _set.FindNode(keyValuePair);
652 if (node == null)
653 {
654 return false;
655 }
656 if (EqualityComparer<TValue>.Default.Equals(node.Item.Value, keyValuePair.Value))
657 {
658 _set.Remove(keyValuePair);
659 return true;
660 }
661 return false;
662 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
readonly TreeSet< KeyValuePair< TKey, TValue > > _set

References System.Collections.Generic.SortedDictionary< TKey, TValue >._set, System.Default, and System.Collections.Generic.Dictionary< TKey, TValue >.Remove().

Referenced by System.Collections.Generic.SortedDictionary< TKey, TValue >.Remove().