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

◆ WrapNode()

static ImmutableList< T > System.Collections.Immutable.ImmutableList< T >.WrapNode ( Node root)
inlinestaticprivate

Definition at line 2112 of file ImmutableList.cs.

2113 {
2114 if (!root.IsEmpty)
2115 {
2116 return new ImmutableList<T>(root);
2117 }
2118 return Empty;
2119 }
static readonly ImmutableList< T > Empty

References System.Collections.Immutable.ImmutableList< T >.Empty, and System.Collections.Immutable.ImmutableList< T >.Node.IsEmpty.