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

◆ WithComparers() [2/2]

ImmutableSortedDictionary< TKey, TValue > System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >.WithComparers ( IComparer< TKey >? keyComparer,
IEqualityComparer< TValue >? valueComparer )
inline

Definition at line 1208 of file ImmutableSortedDictionary.cs.

1209 {
1210 if (keyComparer == null)
1211 {
1212 keyComparer = Comparer<TKey>.Default;
1213 }
1214 if (valueComparer == null)
1215 {
1217 }
1218 if (keyComparer == _keyComparer)
1219 {
1221 {
1222 return this;
1223 }
1225 }
1228 }
void AddRange(IEnumerable< KeyValuePair< TKey, TValue > > collection)

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.Generic.Dictionary< TKey, TValue >.AddRange(), and System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >.Node.EmptyNode.

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