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

◆ Wrap() [2/2]

ImmutableDictionary< TKey, TValue > System.Collections.Immutable.ImmutableDictionary< TKey, TValue >.Wrap ( SortedInt32KeyNode< HashBucket > root,
int adjustedCountIfDifferentRoot )
inlineprivate

Definition at line 1492 of file ImmutableDictionary.cs.

1493 {
1494 if (root == null)
1495 {
1496 return Clear();
1497 }
1498 if (_root != root)
1499 {
1500 if (!root.IsEmpty)
1501 {
1503 }
1504 return Clear();
1505 }
1506 return this;
1507 }
readonly SortedInt32KeyNode< HashBucket > _root
ImmutableDictionary< TKey, TValue > Clear()

References System.Collections.Immutable.ImmutableDictionary< TKey, TValue >._comparers, System.Collections.Immutable.ImmutableDictionary< TKey, TValue >._root, and System.Collections.Immutable.ImmutableDictionary< TKey, TValue >.Clear().