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

◆ SetItem() [1/2]

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

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

Definition at line 1161 of file ImmutableSortedDictionary.cs.

1162 {
1163 Requires.NotNullAllowStructs(key, "key");
1165 bool mutated;
1167 return Wrap(root, replacedExistingValue ? _count : (_count + 1));
1168 }
Node SetItem(TKey key, TValue value, IComparer< TKey > keyComparer, IEqualityComparer< TValue > valueComparer, out bool replacedExistingValue, 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.key, System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >.Node.SetItem(), System.value, and System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >.Wrap().

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