ImmutableSortedSet
Provides a set of initialization methods for instances of the ImmutableSortedSet<T> class.
NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Creates an empty immutable sorted set.
Creates an empty immutable sorted set that uses the specified comparer.
Creates a new immutable sorted set that contains the specified item.
Creates a new immutable sorted set that contains the specified item and uses the specified comparer.
Creates a new immutable sorted set that contains the specified array of items.
Creates a new immutable sorted set that contains the specified array of items.
Creates a new immutable sorted set that contains the specified array of items and uses the specified comparer.
Creates a new immutable collection prefilled with the specified items.
Returns a collection that can be used to build an immutable sorted set.
Returns a collection that can be used to build an immutable sorted set.
Creates a new immutable collection that contains the specified items.
Creates a new immutable collection that contains the specified items.
public static ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource>(this IEnumerable<TSource> source, IComparer<TSource> comparer)
Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer.
public static ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource>(this IEnumerable<TSource> source)
Enumerates a sequence and produces an immutable sorted set of its contents.
public static ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource>(this Builder<TSource> builder)