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

◆ Wrap()

Definition at line 2149 of file ImmutableList.cs.

2150 {
2151 if (root != _root)
2152 {
2153 if (!root.IsEmpty)
2154 {
2155 return new ImmutableList<T>(root);
2156 }
2157 return Clear();
2158 }
2159 return this;
2160 }

References System.Collections.Immutable.ImmutableList< T >._root, System.Collections.Immutable.ImmutableList< T >.Clear(), and System.Collections.Immutable.ImmutableList< T >.Node.IsEmpty.

Referenced by System.Collections.Immutable.ImmutableList< T >.Add(), System.Collections.Immutable.ImmutableList< T >.AddRange(), System.Collections.Immutable.ImmutableList< T >.GetRange(), System.Collections.Immutable.ImmutableList< T >.Insert(), System.Collections.Immutable.ImmutableList< T >.InsertRange(), System.Collections.Immutable.ImmutableList< T >.RemoveAll(), System.Collections.Immutable.ImmutableList< T >.RemoveAt(), System.Collections.Immutable.ImmutableList< T >.RemoveRange(), System.Collections.Immutable.ImmutableList< T >.RemoveRange(), System.Collections.Immutable.ImmutableList< T >.Reverse(), System.Collections.Immutable.ImmutableList< T >.Reverse(), System.Collections.Immutable.ImmutableList< T >.SetItem(), System.Collections.Immutable.ImmutableList< T >.Sort(), System.Collections.Immutable.ImmutableList< T >.Sort(), System.Collections.Immutable.ImmutableList< T >.Sort(), and System.Collections.Immutable.ImmutableList< T >.Sort().