Share via


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)

Source:
ImmutableArray.cs
Source:
ImmutableArray.cs
Source:
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

배열에 저장할 두 번째 개체입니다.

item3
T

배열에 저장할 세 번째 개체입니다.

item4
T

배열에 저장할 네 번째 개체입니다.

반환

지정된 개체를 포함하는 변경할 수 없는 배열입니다.

적용 대상

Create<T>(T, T, T)

Source:
ImmutableArray.cs
Source:
ImmutableArray.cs
Source:
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

배열에 저장할 두 번째 개체입니다.

item3
T

배열에 저장할 세 번째 개체입니다.

반환

지정된 개체를 포함하는 변경할 수 없는 배열입니다.

적용 대상

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

Source:
ImmutableArray.cs
Source:
ImmutableArray.cs
Source:
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)

Source:
ImmutableArray.cs
Source:
ImmutableArray.cs
Source:
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

배열에 저장할 두 번째 개체입니다.

반환

지정된 개체를 포함하는 변경할 수 없는 배열입니다.

적용 대상

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

Source:
ImmutableArray.cs
Source:
ImmutableArray.cs
Source:
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)

Source:
ImmutableArray.cs
Source:
ImmutableArray.cs
Source:
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>)

Source:
ImmutableArray.cs
Source:
ImmutableArray.cs
Source:
ImmutableArray.cs

ImmutableArray<T> 지정된 요소를 사용하여 을 만듭니다.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableArray<T> Create(Span<T> items);
public static System.Collections.Immutable.ImmutableArray<T> Create<T> (Span<T> items);
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>)

Source:
ImmutableArray.cs
Source:
ImmutableArray.cs
Source:
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> (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>()

Source:
ImmutableArray.cs
Source:
ImmutableArray.cs
Source:
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[])

Source:
ImmutableArray.cs
Source:
ImmutableArray.cs
Source:
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[]

배열을 채울 개체의 배열입니다.

반환

항목의 배열을 포함하는 변경할 수 없는 배열입니다.

적용 대상