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

◆ TryCastToImmutableMap()

static bool System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >.TryCastToImmutableMap ( IEnumerable< KeyValuePair< TKey, TValue > > sequence,
[NotNullWhen(true)] out ImmutableSortedDictionary< TKey, TValue > other )
inlinestaticprivate

Definition at line 1389 of file ImmutableSortedDictionary.cs.

1390 {
1392 if (other != null)
1393 {
1394 return true;
1395 }
1396 if (sequence is Builder builder)
1397 {
1398 other = builder.ToImmutable();
1399 return true;
1400 }
1401 return false;
1402 }

References System.other.

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