ImmutableSortedSet ImmutableSortedSet ImmutableSortedSet ImmutableSortedSet Class

Definition

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 ref class ImmutableSortedSet abstract sealed
public static class ImmutableSortedSet
type ImmutableSortedSet = class
Public Module ImmutableSortedSet
Inheritance
ImmutableSortedSetImmutableSortedSetImmutableSortedSetImmutableSortedSet

Methods

Create<T>() Create<T>() Create<T>() Create<T>()

Creates an empty immutable sorted set.

Create<T>(IComparer<T>) Create<T>(IComparer<T>) Create<T>(IComparer<T>) Create<T>(IComparer<T>)

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

Create<T>(T) Create<T>(T) Create<T>(T) Create<T>(T)

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

Create<T>(T[]) Create<T>(T[]) Create<T>(T[]) Create<T>(T[])

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

Create<T>(IComparer<T>, T) Create<T>(IComparer<T>, T) Create<T>(IComparer<T>, T) 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>, T[]) Create<T>(IComparer<T>, T[]) Create<T>(IComparer<T>, T[]) Create<T>(IComparer<T>, T[])

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

CreateBuilder<T>() CreateBuilder<T>() CreateBuilder<T>() CreateBuilder<T>()

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

CreateBuilder<T>(IComparer<T>) CreateBuilder<T>(IComparer<T>) CreateBuilder<T>(IComparer<T>) CreateBuilder<T>(IComparer<T>)

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

CreateRange<T>(IEnumerable<T>) CreateRange<T>(IEnumerable<T>) CreateRange<T>(IEnumerable<T>) CreateRange<T>(IEnumerable<T>)

Creates a new immutable collection that contains the specified items.

CreateRange<T>(IComparer<T>, IEnumerable<T>) CreateRange<T>(IComparer<T>, IEnumerable<T>) CreateRange<T>(IComparer<T>, IEnumerable<T>) CreateRange<T>(IComparer<T>, IEnumerable<T>)

Creates a new immutable collection that contains the specified items.

ToImmutableSortedSet<TSource>(IEnumerable<TSource>) ToImmutableSortedSet<TSource>(IEnumerable<TSource>) ToImmutableSortedSet<TSource>(IEnumerable<TSource>) ToImmutableSortedSet<TSource>(IEnumerable<TSource>)

Enumerates a sequence and produces an immutable sorted set of its contents.

ToImmutableSortedSet<TSource>(ImmutableSortedSet<TSource>) ToImmutableSortedSet<TSource>(ImmutableSortedSet<TSource>) ToImmutableSortedSet<TSource>(ImmutableSortedSet<TSource>) ToImmutableSortedSet<TSource>(ImmutableSortedSet<TSource>)

Creates an immutable sorted set from the current contents of the builder's set.

ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>) ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>) ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>) ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>)

Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer.

Applies to

Thread Safety

This type is thread safe.