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

◆ Add() [5/7]

ImmutableSortedDictionary< TKey, TValue > System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >.Add ( TKey key,
TValue value )
inline

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

Definition at line 1153 of file ImmutableSortedDictionary.cs.

1154 {
1155 Requires.NotNullAllowStructs(key, "key");
1156 bool mutated;
1158 return Wrap(root, _count + 1);
1159 }
Node Add(TKey key, TValue value, IComparer< TKey > keyComparer, IEqualityComparer< TValue > valueComparer, out bool mutated)
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.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >._valueComparer, System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >.Node.Add(), System.key, System.value, and System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >.Wrap().