ImmutableArray.ToImmutableArray<TSource> メソッド

定義

指定したコレクションから変更できない配列を作成します。

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

型パラメーター

TSource

itemsに含まれる要素の型。

パラメーター

items
IEnumerable<TSource>

変更できない配列にコピーするオブジェクトのコレクション。

返品

ImmutableArray<TSource>

指定したオブジェクトのコレクションを含む変更できない配列。

適用対象