ImmutableArray.ToImmutableArray 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
ToImmutableArray<T>(ReadOnlySpan<T>) |
지정된 요소에서 변경할 수 없는 콘텐츠 배열을 생성합니다. |
ToImmutableArray<T>(Span<T>) |
범위를 변경할 수 없는 배열로 변환합니다. |
ToImmutableArray<TSource>(IEnumerable<TSource>) |
지정된 컬렉션에서 변경할 수 없는 배열을 만듭니다. |
ToImmutableArray<TSource>(ImmutableArray<TSource>.Builder) |
작성기 배열의 현재 콘텐츠에서 변경할 수 없는 배열을 만듭니다. |
ToImmutableArray<T>(ReadOnlySpan<T>)
- Source:
- ImmutableArray.cs
- Source:
- ImmutableArray.cs
- Source:
- ImmutableArray.cs
지정된 요소에서 변경할 수 없는 콘텐츠 배열을 생성합니다.
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>
배열에 저장할 요소입니다.
반환
범위의 항목을 포함하는 변경할 수 없는 배열입니다.
적용 대상
ToImmutableArray<T>(Span<T>)
- Source:
- ImmutableArray.cs
- Source:
- ImmutableArray.cs
- Source:
- ImmutableArray.cs
범위를 변경할 수 없는 배열로 변환합니다.
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>
배열에 저장할 요소입니다.
반환
범위의 항목을 포함하는 변경할 수 없는 배열입니다.
적용 대상
ToImmutableArray<TSource>(IEnumerable<TSource>)
- Source:
- ImmutableArray.cs
- Source:
- ImmutableArray.cs
- Source:
- ImmutableArray.cs
지정된 컬렉션에서 변경할 수 없는 배열을 만듭니다.
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>
변경할 수 없는 배열에 복사할 개체의 컬렉션입니다.
반환
지정된 개체 컬렉션을 포함하는 변경할 수 없는 배열입니다.
적용 대상
ToImmutableArray<TSource>(ImmutableArray<TSource>.Builder)
- Source:
- ImmutableArray.cs
- Source:
- ImmutableArray.cs
- Source:
- ImmutableArray.cs
작성기 배열의 현재 콘텐츠에서 변경할 수 없는 배열을 만듭니다.
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
변경할 수 없는 배열을 만들 작성기입니다.
반환
작성기 배열의 현재 콘텐츠를 포함하는 변경할 수 없는 배열입니다.
적용 대상
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기