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
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기