ImmutableArray.Create メソッド

定義

オーバーロード

名前 説明
Create<T>(T, T, T, T)

指定したオブジェクトを含む変更できない配列を作成します。

Create<T>(T, T, T)

指定したオブジェクトを含む変更できない配列を作成します。

Create<T>(ImmutableArray<T>, Int32, Int32)

別の変更できない配列から、指定したオブジェクトを使用して変更できない配列を作成します。

Create<T>(T, T)

指定したオブジェクトを含む変更できない配列を作成します。

Create<T>(T[], Int32, Int32)

別の配列から、指定したオブジェクトを持つ変更できない配列を作成します。

Create<T>(T)

指定したオブジェクトを含む変更できない配列を作成します。

Create<T>(Span<T>)

指定した要素を使用して ImmutableArray<T> を作成します。

Create<T>(ReadOnlySpan<T>)

指定した要素を使用して ImmutableArray<T> を作成します。

Create<T>()

空の変更できない配列を作成します。

Create<T>(T[])

指定したオブジェクトの配列から変更できない配列を作成します。

Create<T>(T, T, T, T)

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

指定したオブジェクトを含む変更できない配列を作成します。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T> Create(T item1, T item2, T item3, T item4);
public static System.Collections.Immutable.ImmutableArray<T> Create<T>(T item1, T item2, T item3, T item4);
static member Create : 'T * 'T * 'T * 'T -> System.Collections.Immutable.ImmutableArray<'T>
Public Function Create(Of T) (item1 As T, item2 As T, item3 As T, item4 As T) As ImmutableArray(Of T)

型パラメーター

T

配列に格納されている要素の型。

パラメーター

item1
T

配列に格納する最初のオブジェクト。

item2
T

配列に格納する 2 番目のオブジェクト。

item3
T

配列に格納する 3 番目のオブジェクト。

item4
T

配列に格納する 4 番目のオブジェクト。

返品

指定したオブジェクトを含む変更できない配列。

適用対象

Create<T>(T, T, T)

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

指定したオブジェクトを含む変更できない配列を作成します。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T> Create(T item1, T item2, T item3);
public static System.Collections.Immutable.ImmutableArray<T> Create<T>(T item1, T item2, T item3);
static member Create : 'T * 'T * 'T -> System.Collections.Immutable.ImmutableArray<'T>
Public Function Create(Of T) (item1 As T, item2 As T, item3 As T) As ImmutableArray(Of T)

型パラメーター

T

配列に格納されている要素の型。

パラメーター

item1
T

配列に格納する最初のオブジェクト。

item2
T

配列に格納する 2 番目のオブジェクト。

item3
T

配列に格納する 3 番目のオブジェクト。

返品

指定したオブジェクトを含む変更できない配列。

適用対象

Create<T>(ImmutableArray<T>, Int32, Int32)

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

別の変更できない配列から、指定したオブジェクトを使用して変更できない配列を作成します。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T> Create(System::Collections::Immutable::ImmutableArray<T> items, int start, int length);
public static System.Collections.Immutable.ImmutableArray<T> Create<T>(System.Collections.Immutable.ImmutableArray<T> items, int start, int length);
static member Create : System.Collections.Immutable.ImmutableArray<'T> * int * int -> System.Collections.Immutable.ImmutableArray<'T>
Public Function Create(Of T) (items As ImmutableArray(Of T), start As Integer, length As Integer) As ImmutableArray(Of T)

型パラメーター

T

配列に格納されている要素の型。

パラメーター

items
ImmutableArray<T>

オブジェクトのソース配列。

start
Int32

itemsからコピーする最初の要素のインデックス。

length
Int32

この変更できない配列に含める items の要素の数。

返品

ソース配列から指定されたオブジェクトを含む変更できない配列。

注釈

このオーバーロードにより、ヘルパー メソッドまたはカスタム ビルダー クラスは、新しい配列が既存の配列のセグメントである場合に、配列のコピーに対する冗長税の支払いを効率的に回避できます。

適用対象

Create<T>(T, T)

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

指定したオブジェクトを含む変更できない配列を作成します。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T> Create(T item1, T item2);
public static System.Collections.Immutable.ImmutableArray<T> Create<T>(T item1, T item2);
static member Create : 'T * 'T -> System.Collections.Immutable.ImmutableArray<'T>
Public Function Create(Of T) (item1 As T, item2 As T) As ImmutableArray(Of T)

型パラメーター

T

配列に格納されている要素の型。

パラメーター

item1
T

配列に格納する最初のオブジェクト。

item2
T

配列に格納する 2 番目のオブジェクト。

返品

指定したオブジェクトを含む変更できない配列。

適用対象

Create<T>(T[], Int32, Int32)

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

別の配列から、指定したオブジェクトを持つ変更できない配列を作成します。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T> Create(cli::array <T> ^ items, int start, int length);
public static System.Collections.Immutable.ImmutableArray<T> Create<T>(T[] items, int start, int length);
static member Create : 'T[] * int * int -> System.Collections.Immutable.ImmutableArray<'T>
Public Function Create(Of T) (items As T(), start As Integer, length As Integer) As ImmutableArray(Of T)

型パラメーター

T

配列に格納されている要素の型。

パラメーター

items
T[]

オブジェクトのソース配列。

start
Int32

itemsからコピーする最初の要素のインデックス。

length
Int32

この変更できない配列に含める items の要素の数。

返品

ソース配列から指定されたオブジェクトを含む変更できない配列。

注釈

このオーバーロードにより、ヘルパー メソッドまたはカスタム ビルダー クラスは、新しい配列が既存の配列のセグメントである場合に、配列のコピーに対する冗長税の支払いを効率的に回避できます。

適用対象

Create<T>(T)

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

指定したオブジェクトを含む変更できない配列を作成します。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T> Create(T item);
public static System.Collections.Immutable.ImmutableArray<T> Create<T>(T item);
static member Create : 'T -> System.Collections.Immutable.ImmutableArray<'T>
Public Function Create(Of T) (item As T) As ImmutableArray(Of T)

型パラメーター

T

配列に格納されている要素の型。

パラメーター

item
T

配列に格納するオブジェクト。

返品

指定したオブジェクトを含む変更できない配列。

適用対象

Create<T>(Span<T>)

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

指定した要素を使用して ImmutableArray<T> を作成します。

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

型パラメーター

T

配列に格納されている要素の型。

パラメーター

items
Span<T>

配列に格納する要素。

返品

指定した項目を含む変更できない配列。

属性

適用対象

Create<T>(ReadOnlySpan<T>)

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

指定した要素を使用して ImmutableArray<T> を作成します。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T> Create(ReadOnlySpan<T> items);
public static System.Collections.Immutable.ImmutableArray<T> Create<T>(scoped ReadOnlySpan<T> items);
public static System.Collections.Immutable.ImmutableArray<T> Create<T>(ReadOnlySpan<T> items);
static member Create : ReadOnlySpan<'T> -> System.Collections.Immutable.ImmutableArray<'T>
Public Function Create(Of T) (items As ReadOnlySpan(Of T)) As ImmutableArray(Of T)

型パラメーター

T

配列に格納されている要素の型。

パラメーター

items
ReadOnlySpan<T>

配列に格納する要素。

返品

指定した項目を含む変更できない配列。

適用対象

Create<T>()

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

空の変更できない配列を作成します。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T> Create();
public static System.Collections.Immutable.ImmutableArray<T> Create<T>();
static member Create : unit -> System.Collections.Immutable.ImmutableArray<'T>
Public Function Create(Of T) () As ImmutableArray(Of T)

型パラメーター

T

配列に格納されている要素の型。

返品

空の変更できない配列。

適用対象

Create<T>(T[])

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

指定したオブジェクトの配列から変更できない配列を作成します。

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T> Create(... cli::array <T> ^ items);
public static System.Collections.Immutable.ImmutableArray<T> Create<T>(params T[] items);
public static System.Collections.Immutable.ImmutableArray<T> Create<T>(params T[]? items);
static member Create : 'T[] -> System.Collections.Immutable.ImmutableArray<'T>
Public Function Create(Of T) (ParamArray items As T()) As ImmutableArray(Of T)

型パラメーター

T

配列に格納されている要素の型。

パラメーター

items
T[]

配列にデータを設定するオブジェクトの配列。

返品

項目の配列を含む変更できない配列。

適用対象