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

◆ TryCastToImmutableList()

static bool System.Collections.Immutable.ImmutableList< T >.TryCastToImmutableList ( IEnumerable< T > sequence,
[NotNullWhen(true)] out ImmutableList< T > other )
inlinestaticprivate

Definition at line 2121 of file ImmutableList.cs.

2122 {
2124 if (other != null)
2125 {
2126 return true;
2127 }
2128 if (sequence is Builder builder)
2129 {
2130 other = builder.ToImmutable();
2131 return true;
2132 }
2133 return false;
2134 }

References System.other.

Referenced by System.Collections.Immutable.ImmutableList< T >.CreateRange(), and System.Collections.Immutable.ImmutableList< T >.Node.CreateRange().