ImmutableArray.ToImmutableArray メソッド

定義

オーバーロード

名前 説明
ToImmutableArray<T>(ReadOnlySpan<T>)

指定した要素から、変更できない内容の配列を生成します。

ToImmutableArray<T>(Span<T>)

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

ToImmutableArray<TSource>(IEnumerable<TSource>)

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

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

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

ToImmutableArray<T>(ReadOnlySpan<T>)

ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs

指定した要素から、変更できない内容の配列を生成します。

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>

配列に格納する要素。

返品

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

適用対象

ToImmutableArray<T>(Span<T>)

ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs

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

public:
generic <typename T>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableArray<T> ToImmutableArray(Span<T> items);
[System.Runtime.CompilerServices.OverloadResolutionPriority(-1)]
public static System.Collections.Immutable.ImmutableArray<T> ToImmutableArray<T>(this Span<T> items);
public static System.Collections.Immutable.ImmutableArray<T> ToImmutableArray<T>(this Span<T> items);
[<System.Runtime.CompilerServices.OverloadResolutionPriority(-1)>]
static member ToImmutableArray : Span<'T> -> System.Collections.Immutable.ImmutableArray<'T>
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>

配列に格納する要素。

返品

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

属性

適用対象

ToImmutableArray<TSource>(IEnumerable<TSource>)

ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs

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

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)

ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs
ソース:
ImmutableArray.cs

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

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>

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

適用対象