ImmutableArray.ToImmutableArray メソッド

定義

オーバーロード

ToImmutableArray<T>(ReadOnlySpan<T>)

指定した要素からコンテンツの変更できない配列を生成します。

ToImmutableArray<T>(Span<T>)

スパンを変更できない配列に変換します。

ToImmutableArray<TSource>(IEnumerable<TSource>)

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

ToImmutableArray<TSource>(ImmutableArray<TSource>.Builder)

ビルダーの配列の現在の内容から、変更できない配列を作成します。

ToImmutableArray<T>(ReadOnlySpan<T>)

指定した要素からコンテンツの変更できない配列を生成します。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableArray<T> ToImmutableArray(ReadOnlySpan<T> items);
public static System.Collections.Immutable.ImmutableArray<T> ToImmutableArray<T> (this ReadOnlySpan<T> items);
static member ToImmutableArray : ReadOnlySpan<'T> -> System.Collections.Immutable.ImmutableArray<'T>
<Extension()>
Public Function ToImmutableArray(Of T) (items As ReadOnlySpan(Of T)) As ImmutableArray(Of T)

型パラメーター

T

リスト内の要素の型。

パラメーター

items
ReadOnlySpan<T>

配列に格納する要素。

戻り値

ImmutableArray<T>

スパン内の項目を含む変更できない配列。

適用対象

ToImmutableArray<T>(Span<T>)

スパンを変更できない配列に変換します。

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableArray<T> ToImmutableArray(Span<T> items);
public static System.Collections.Immutable.ImmutableArray<T> ToImmutableArray<T> (this Span<T> items);
static member ToImmutableArray : Span<'T> -> System.Collections.Immutable.ImmutableArray<'T>
<Extension()>
Public Function ToImmutableArray(Of T) (items As Span(Of T)) As ImmutableArray(Of T)

型パラメーター

T

リスト内の要素の型。

パラメーター

items
Span<T>

配列に格納する要素。

戻り値

ImmutableArray<T>

スパン内の項目を含む変更できない配列。

適用対象

ToImmutableArray<TSource>(IEnumerable<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>

指定されたオブジェクトのコレクションを格納する、変更できない配列。

適用対象

ToImmutableArray<TSource>(ImmutableArray<TSource>.Builder)

ビルダーの配列の現在の内容から、変更できない配列を作成します。

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

型パラメーター

TSource

変更できない配列に含まれる要素の型。

パラメーター

builder
ImmutableArray<TSource>.Builder

変更できない配列を作成するためのビルダー。

戻り値

ImmutableArray<TSource>

ビルダーの配列の現在の内容を含む、変更できない配列。

適用対象