ImmutableArray.ToImmutableArray 메서드

정의

오버로드

ToImmutableArray<T>(ReadOnlySpan<T>)

지정된 요소에서 변경할 수 없는 콘텐츠 배열을 생성합니다.

ToImmutableArray<T>(Span<T>)

범위를 변경할 수 없는 배열로 변환합니다.

ToImmutableArray<TSource>(IEnumerable<TSource>)

지정된 컬렉션에서 변경할 수 없는 배열을 만듭니다.

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

작성기 배열의 현재 콘텐츠에서 변경할 수 없는 배열을 만듭니다.

ToImmutableArray<T>(ReadOnlySpan<T>)

지정된 요소에서 변경할 수 없는 콘텐츠 배열을 생성합니다.

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>

배열에 저장할 요소입니다.

반환

ImmutableArray<T>

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

적용 대상

ToImmutableArray<T>(Span<T>)

범위를 변경할 수 없는 배열로 변환합니다.

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

배열에 저장할 요소입니다.

반환

ImmutableArray<T>

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

적용 대상

ToImmutableArray<TSource>(IEnumerable<TSource>)

지정된 컬렉션에서 변경할 수 없는 배열을 만듭니다.

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)

작성기 배열의 현재 콘텐츠에서 변경할 수 없는 배열을 만듭니다.

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>

작성기 배열의 현재 콘텐츠를 포함하는 변경할 수 없는 배열입니다.

적용 대상