ImmutableSortedSet.CreateBuilder Method

Definition

Overloads

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.

CreateBuilder<T>()

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

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableSortedSet<T>::Builder ^ CreateBuilder();
public static System.Collections.Immutable.ImmutableSortedSet<T>.Builder CreateBuilder<T> ();
static member CreateBuilder : unit -> System.Collections.Immutable.ImmutableSortedSet<'T>.Builder
Public Function CreateBuilder(Of T) () As ImmutableSortedSet(Of T).Builder

Type Parameters

T

The type of items stored by the collection.

Returns

The immutable collection builder.

Applies to

CreateBuilder<T>(IComparer<T>)

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

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableSortedSet<T>::Builder ^ CreateBuilder(System::Collections::Generic::IComparer<T> ^ comparer);
public static System.Collections.Immutable.ImmutableSortedSet<T>.Builder CreateBuilder<T> (System.Collections.Generic.IComparer<T> comparer);
public static System.Collections.Immutable.ImmutableSortedSet<T>.Builder CreateBuilder<T> (System.Collections.Generic.IComparer<T>? comparer);
static member CreateBuilder : System.Collections.Generic.IComparer<'T> -> System.Collections.Immutable.ImmutableSortedSet<'T>.Builder
Public Function CreateBuilder(Of T) (comparer As IComparer(Of T)) As ImmutableSortedSet(Of T).Builder

Type Parameters

T

The type of items stored by the collection.

Parameters

comparer
IComparer<T>

The comparer used to compare items in the set for equality.

Returns

The immutable collection.

Applies to