System.Collections.Immutable by Microsoft

<PackageReference Include="System.Collections.Immutable" Version="10.0.0-preview.2.25163.2" />

.NET API 250,680 bytes

 ImmutableSortedSet

public static class 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)
public static ImmutableSortedSet<T> Create<T>()

Creates an empty immutable sorted set.

public static ImmutableSortedSet<T> Create<T>(IComparer<T> comparer)

Creates an empty immutable sorted set that uses the specified comparer.

public static ImmutableSortedSet<T> Create<T>(T item)

Creates a new immutable sorted set that contains the specified item.

public static ImmutableSortedSet<T> Create<T>(IComparer<T> comparer, T item)

Creates a new immutable sorted set that contains the specified item and uses the specified comparer.

public static ImmutableSortedSet<T> Create<T>(T[] items)

Creates a new immutable sorted set that contains the specified array of items.

public static ImmutableSortedSet<T> Create<T>(ReadOnlySpan<T> items)

Creates a new immutable sorted set that contains the specified array of items.

public static ImmutableSortedSet<T> Create<T>(IComparer<T> comparer, T[] items)

Creates a new immutable sorted set that contains the specified array of items and uses the specified comparer.

public static ImmutableSortedSet<T> Create<T>(IComparer<T> comparer, ReadOnlySpan<T> items)

Creates a new immutable collection prefilled with the specified items.

public static Builder<T> CreateBuilder<T>()

Returns a collection that can be used to build an immutable sorted set.

public static Builder<T> CreateBuilder<T>(IComparer<T> comparer)

Returns a collection that can be used to build an immutable sorted set.

public static ImmutableSortedSet<T> CreateRange<T>(IEnumerable<T> items)

Creates a new immutable collection that contains the specified items.

public static ImmutableSortedSet<T> CreateRange<T>(IComparer<T> comparer, IEnumerable<T> 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)