ImmutableArray.ToImmutableArray Method

Definition

Overloads

ToImmutableArray<TSource>(IEnumerable<TSource>)

지정된 컬렉션에서 변경할 수 없는 배열을 만듭니다.Creates an immutable array from the specified collection.

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

작성기 배열의 현재 콘텐츠에서 변경할 수 없는 배열을 만듭니다.Creates an immutable array from the current contents of the builder's array.

ToImmutableArray<TSource>(IEnumerable<TSource>)

지정된 컬렉션에서 변경할 수 없는 배열을 만듭니다.Creates an immutable array from the specified collection.

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)

Type Parameters

TSource

items에 포함된 요소의 형식입니다.The type of elements contained in items.

Parameters

items
IEnumerable<TSource>

변경할 수 없는 배열에 복사할 개체의 컬렉션입니다.The collection of objects to copy to the immutable array.

Returns

ImmutableArray<TSource>

지정된 개체 컬렉션을 포함하는 변경할 수 없는 배열입니다.An immutable array that contains the specified collection of objects.

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

작성기 배열의 현재 콘텐츠에서 변경할 수 없는 배열을 만듭니다.Creates an immutable array from the current contents of the builder's array.

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)

Type Parameters

TSource

변경할 수 없는 배열에 포함 된 요소의 형식입니다.The type of elements contained in the immutable array.

Parameters

builder
ImmutableArray<TSource>.Builder

변경할 수 없는 배열을 만들 작성기입니다.The builder to create the immutable array from.

Returns

ImmutableArray<TSource>

작성기 배열의 현재 콘텐츠를 포함하는 변경할 수 없는 배열입니다.An immutable array that contains the current contents of the builder's array.

Applies to