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

◆ RemoveRange() [1/2]

ImmutableSortedDictionary< TKey, TValue > System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >.RemoveRange ( IEnumerable< TKey > keys)
inline

Implements System.Collections.Immutable.IImmutableDictionary< TKey, TValue >.

Definition at line 1190 of file ImmutableSortedDictionary.cs.

1191 {
1192 Requires.NotNull(keys, "keys");
1193 Node node = _root;
1194 int num = _count;
1195 foreach (TKey key in keys)
1196 {
1197 bool mutated;
1199 if (mutated)
1200 {
1201 node = node2;
1202 num--;
1203 }
1204 }
1205 return Wrap(node, num);
1206 }
bool ICollection< KeyValuePair< TKey, TValue > >. Remove(KeyValuePair< TKey, TValue > keyValuePair)
static ImmutableSortedDictionary< TKey, TValue > Wrap(Node root, int count, IComparer< TKey > keyComparer, IEqualityComparer< TValue > valueComparer)

References System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >._count, System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >._keyComparer, System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >._root, System.key, System.keys, System.Collections.Generic.Dictionary< TKey, TValue >.Remove(), and System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >.Wrap().

Referenced by System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >.RemoveRange().