ImmutableSortedSet.CreateRange Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應