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

◆ ToImmutableSortedDictionary< TKey, TValue >() [3/4]

static ImmutableSortedDictionary< TKey, TValue > System.Collections.Immutable.ImmutableSortedDictionary< TKey, TValue >.ToImmutableSortedDictionary< TKey, TValue > ( this IEnumerable< KeyValuePair< TKey, TValue > > source,
IComparer< TKey >? keyComparer,
IEqualityComparer< TValue >? valueComparer )
inlinestatic
Type Constraints
TKey :notnull 

Definition at line 83 of file ImmutableSortedDictionary.cs.

83 : notnull
84 {
85 Requires.NotNull(source, "source");
87 {
88 return immutableSortedDictionary.WithComparers(keyComparer, valueComparer);
89 }
90 return ImmutableSortedDictionary<TKey, TValue>.Empty.WithComparers(keyComparer, valueComparer).AddRange(source);
91 }
void AddRange(IEnumerable< KeyValuePair< TKey, TValue > > collection)

References System.Collections.Generic.Dictionary< TKey, TValue >.AddRange(), and System.source.