ImmutableList.ToImmutableList メソッド

定義

オーバーロード

ToImmutableList<TSource>(IEnumerable<TSource>)

シーケンスを列挙し、その内容の変更できないリストを生成します。

ToImmutableList<TSource>(ImmutableList<TSource>.Builder)

ビルダーのコレクションの現在の内容から、変更できないリストを作成します。

ToImmutableList<TSource>(IEnumerable<TSource>)

Source:
ImmutableList.cs
Source:
ImmutableList.cs
Source:
ImmutableList.cs

シーケンスを列挙し、その内容の変更できないリストを生成します。

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableList<TSource> ^ ToImmutableList(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Collections.Immutable.ImmutableList<TSource> ToImmutableList<TSource> (this System.Collections.Generic.IEnumerable<TSource> source);
static member ToImmutableList : seq<'Source> -> System.Collections.Immutable.ImmutableList<'Source>
<Extension()>
Public Function ToImmutableList(Of TSource) (source As IEnumerable(Of TSource)) As ImmutableList(Of TSource)

型パラメーター

TSource

シーケンス内の要素の型。

パラメーター

source
IEnumerable<TSource>

列挙するシーケンス。

戻り値

ImmutableList<TSource>

指定されたシーケンス内の項目を含む、変更できないリスト。

適用対象

ToImmutableList<TSource>(ImmutableList<TSource>.Builder)

Source:
ImmutableList.cs
Source:
ImmutableList.cs
Source:
ImmutableList.cs

ビルダーのコレクションの現在の内容から、変更できないリストを作成します。

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableList<TSource> ^ ToImmutableList(System::Collections::Immutable::ImmutableList<TSource>::Builder ^ builder);
public static System.Collections.Immutable.ImmutableList<TSource> ToImmutableList<TSource> (this System.Collections.Immutable.ImmutableList<TSource>.Builder builder);
static member ToImmutableList : System.Collections.Immutable.ImmutableList<'Source>.Builder -> System.Collections.Immutable.ImmutableList<'Source>
<Extension()>
Public Function ToImmutableList(Of TSource) (builder As ImmutableList(Of TSource).Builder) As ImmutableList(Of TSource)

型パラメーター

TSource

一覧内の要素の型です。

パラメーター

builder
ImmutableList<TSource>.Builder

変更できないリストを作成するためのビルダー。

戻り値

ImmutableList<TSource>

ビルダーのコレクションの現在の内容を含む、変更できないリスト。

適用対象