ImmutableSortedSet Class
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)
Assembly: System.Collections.Immutable (in System.Collections.Immutable.dll)
| Name | Description | |
|---|---|---|
![]() ![]() | Create<T>() | Creates an empty immutable sorted set. |
![]() ![]() | Create<T>(T) | Creates a new immutable sorted set that contains the specified item. |
![]() ![]() | Create<T>(array<T>^) | Creates a new immutable sorted set that contains the specified array of items. |
![]() ![]() | Create<T>(IComparer<T>^) | Creates an empty immutable sorted set that uses the specified comparer. |
![]() ![]() | Create<T>(IComparer<T>^, T) | Creates a new immutable sorted set that contains the specified item and uses the specified comparer. |
![]() ![]() | Create<T>(IComparer<T>^, array<T>^) | Creates a new immutable sorted set that contains the specified array of items and uses the specified comparer. |
![]() ![]() | CreateBuilder<T>() | Returns a collection that can be used to build an immutable sorted set. |
![]() ![]() | CreateBuilder<T>(IComparer<T>^) | Returns a collection that can be used to build an immutable sorted set. |
![]() ![]() | CreateRange<T>(IComparer<T>^, IEnumerable<T>^) | Creates a new immutable collection that contains the specified items. |
![]() ![]() | CreateRange<T>(IEnumerable<T>^) | Creates a new immutable collection that contains the specified items. |
![]() ![]() | ToImmutableSortedSet<TSource>(IEnumerable<TSource>^) | Enumerates a sequence and produces an immutable sorted set of its contents. |
![]() ![]() | ToImmutableSortedSet<TSource>(IEnumerable<TSource>^, IComparer<TSource>^) | Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer. |
This type is thread safe.

