ImmutableArray.ToImmutableArray ImmutableArray.ToImmutableArray ImmutableArray.ToImmutableArray ImmutableArray.ToImmutableArray Method

정의

오버로드

ToImmutableArray<TSource>(IEnumerable<TSource>) ToImmutableArray<TSource>(IEnumerable<TSource>) ToImmutableArray<TSource>(IEnumerable<TSource>) ToImmutableArray<TSource>(IEnumerable<TSource>)

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

ToImmutableArray<TSource>(ImmutableArray<TSource>) ToImmutableArray<TSource>(ImmutableArray<TSource>) ToImmutableArray<TSource>(ImmutableArray<TSource>)

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

형식 매개 변수

TSource

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

매개 변수

items
IEnumerable<TSource>

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

반환

ImmutableArray<TSource>

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

ToImmutableArray<TSource>(ImmutableArray<TSource>) ToImmutableArray<TSource>(ImmutableArray<TSource>) ToImmutableArray<TSource>(ImmutableArray<TSource>)

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>

형식 매개 변수

TSource

매개 변수

builder
ImmutableArray<TSource>.Builder

반환

ImmutableArray<TSource>

적용 대상