ImmutableSortedSet.CreateRange Method

Definition

Overloads

CreateRange<T>(IEnumerable<T>)

Creates a new immutable collection that contains the specified items.

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

Creates a new immutable collection that contains the specified items.

CreateRange<T>(IEnumerable<T>)

Source:
ImmutableSortedSet.cs
Source:
ImmutableSortedSet.cs
Source:
ImmutableSortedSet.cs

Creates a new immutable collection that contains the specified items.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableSortedSet<T> ^ CreateRange(System::Collections::Generic::IEnumerable<T> ^ items);
public static System.Collections.Immutable.ImmutableSortedSet<T> CreateRange<T> (System.Collections.Generic.IEnumerable<T> items);
static member CreateRange : seq<'T> -> System.Collections.Immutable.ImmutableSortedSet<'T>
Public Function CreateRange(Of T) (items As IEnumerable(Of T)) As ImmutableSortedSet(Of T)

Type Parameters

T

The type of items stored by the collection.

Parameters

items
IEnumerable<T>

The items to add to the set with before it's immutable.

Returns

The new immutable set that contains the specified items.

Applies to

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

Source:
ImmutableSortedSet.cs
Source:
ImmutableSortedSet.cs
Source:
ImmutableSortedSet.cs

Creates a new immutable collection that contains the specified items.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableSortedSet<T> ^ CreateRange(System::Collections::Generic::IComparer<T> ^ comparer, System::Collections::Generic::IEnumerable<T> ^ items);
public static System.Collections.Immutable.ImmutableSortedSet<T> CreateRange<T> (System.Collections.Generic.IComparer<T> comparer, System.Collections.Generic.IEnumerable<T> items);
public static System.Collections.Immutable.ImmutableSortedSet<T> CreateRange<T> (System.Collections.Generic.IComparer<T>? comparer, System.Collections.Generic.IEnumerable<T> items);
static member CreateRange : System.Collections.Generic.IComparer<'T> * seq<'T> -> System.Collections.Immutable.ImmutableSortedSet<'T>
Public Function CreateRange(Of T) (comparer As IComparer(Of T), items As IEnumerable(Of T)) As ImmutableSortedSet(Of T)

Type Parameters

T

The type of items stored by the collection.

Parameters

comparer
IComparer<T>

The comparer to use to compare elements in this set.

items
IEnumerable<T>

The items to add to the set before it's immutable.

Returns

The new immutable set that contains the specified items.

Applies to