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

◆ TryCastToImmutableMap()

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

Definition at line 1365 of file ImmutableDictionary.cs.

1366 {
1368 if (other != null)
1369 {
1370 return true;
1371 }
1372 if (sequence is Builder builder)
1373 {
1374 other = builder.ToImmutable();
1375 return true;
1376 }
1377 return false;
1378 }

References System.other.

Referenced by System.Collections.Immutable.ImmutableDictionary< TKey, TValue >.AddRange().