ImmutableSortedSet.ToImmutableSortedSet メソッド
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ToImmutableSortedSet<TSource>(IEnumerable<TSource>) |
シーケンスを列挙し、その内容の変更できない並べ替えられたセットを生成します。 |
ToImmutableSortedSet<TSource>(ImmutableSortedSet<TSource>.Builder) |
ビルダーのセットの現在の内容から、変更できない並べ替えられたセットを作成します。 |
ToImmutableSortedSet<TSource>(IEnumerable<TSource>, IComparer<TSource>) |
シーケンスを列挙し、その内容の変更できない並べ替えられたセットを生成して、指定された比較子を使用します。 |
シーケンスを列挙し、その内容の変更できない並べ替えられたセットを生成します。
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableSortedSet<TSource> ^ ToImmutableSortedSet(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Collections.Immutable.ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource> (this System.Collections.Generic.IEnumerable<TSource> source);
static member ToImmutableSortedSet : seq<'Source> -> System.Collections.Immutable.ImmutableSortedSet<'Source>
<Extension()>
Public Function ToImmutableSortedSet(Of TSource) (source As IEnumerable(Of TSource)) As ImmutableSortedSet(Of TSource)
型パラメーター
- TSource
シーケンス内の要素の型。
パラメーター
- source
- IEnumerable<TSource>
列挙するシーケンス。
戻り値
指定されたシーケンス内の項目を含む、変更できない並べ替えられたセット。
適用対象
.NET 9 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
UWP | 10.0 |
ビルダーのセットの現在の内容から、変更できない並べ替えられたセットを作成します。
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableSortedSet<TSource> ^ ToImmutableSortedSet(System::Collections::Immutable::ImmutableSortedSet<TSource>::Builder ^ builder);
public static System.Collections.Immutable.ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource> (this System.Collections.Immutable.ImmutableSortedSet<TSource>.Builder builder);
static member ToImmutableSortedSet : System.Collections.Immutable.ImmutableSortedSet<'Source>.Builder -> System.Collections.Immutable.ImmutableSortedSet<'Source>
<Extension()>
Public Function ToImmutableSortedSet(Of TSource) (builder As ImmutableSortedSet(Of TSource).Builder) As ImmutableSortedSet(Of TSource)
型パラメーター
- TSource
変更できない並べ替えられたセット内の要素の型。
パラメーター
- builder
- ImmutableSortedSet<TSource>.Builder
変更できない並べ替えられたセットを作成するためのビルダー。
戻り値
ビルダーのセットの現在の内容を含む、変更できない並べ替えられたセット。
適用対象
.NET 9 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
シーケンスを列挙し、その内容の変更できない並べ替えられたセットを生成して、指定された比較子を使用します。
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableSortedSet<TSource> ^ ToImmutableSortedSet(System::Collections::Generic::IEnumerable<TSource> ^ source, System::Collections::Generic::IComparer<TSource> ^ comparer);
public static System.Collections.Immutable.ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource> (this System.Collections.Generic.IEnumerable<TSource> source, System.Collections.Generic.IComparer<TSource> comparer);
public static System.Collections.Immutable.ImmutableSortedSet<TSource> ToImmutableSortedSet<TSource> (this System.Collections.Generic.IEnumerable<TSource> source, System.Collections.Generic.IComparer<TSource>? comparer);
static member ToImmutableSortedSet : seq<'Source> * System.Collections.Generic.IComparer<'Source> -> System.Collections.Immutable.ImmutableSortedSet<'Source>
<Extension()>
Public Function ToImmutableSortedSet(Of TSource) (source As IEnumerable(Of TSource), comparer As IComparer(Of TSource)) As ImmutableSortedSet(Of TSource)
型パラメーター
- TSource
シーケンス内の要素の型。
パラメーター
- source
- IEnumerable<TSource>
列挙するシーケンス。
- comparer
- IComparer<TSource>
並べ替えられたセットのメンバーの初期化と追加に使用する比較子。
戻り値
指定されたシーケンス内の項目を含む、変更できない並べ替えられたセット。
適用対象
.NET 9 およびその他のバージョン
製品 | バージョン |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9 |
UWP | 10.0 |
.NET に関するフィードバック
.NET はオープンソース プロジェクトです。 フィードバックを提供するにはリンクを選択します。