ImmutableList.ToImmutableList 메서드

정의

오버로드

ToImmutableList<TSource>(IEnumerable<TSource>)

시퀀스를 열거하고 해당 시퀀스의 내용에 대한 변경할 수 없는 목록을 생성합니다.

ToImmutableList<TSource>(ImmutableList<TSource>.Builder)

작성기 컬렉션의 현재 콘텐츠에서 변경할 수 없는 목록을 만듭니다.

ToImmutableList<TSource>(IEnumerable<TSource>)

Source:
ImmutableList.cs
Source:
ImmutableList.cs
Source:
ImmutableList.cs

시퀀스를 열거하고 해당 시퀀스의 내용에 대한 변경할 수 없는 목록을 생성합니다.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableList<TSource> ^ ToImmutableList(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Collections.Immutable.ImmutableList<TSource> ToImmutableList<TSource> (this System.Collections.Generic.IEnumerable<TSource> source);
static member ToImmutableList : seq<'Source> -> System.Collections.Immutable.ImmutableList<'Source>
<Extension()>
Public Function ToImmutableList(Of TSource) (source As IEnumerable(Of TSource)) As ImmutableList(Of TSource)

형식 매개 변수

TSource

시퀀스의 요소 형식입니다.

매개 변수

source
IEnumerable<TSource>

열거할 시퀀스입니다.

반환

ImmutableList<TSource>

지정된 시퀀스의 항목을 포함하는 변경할 수 없는 목록입니다.

적용 대상

ToImmutableList<TSource>(ImmutableList<TSource>.Builder)

Source:
ImmutableList.cs
Source:
ImmutableList.cs
Source:
ImmutableList.cs

작성기 컬렉션의 현재 콘텐츠에서 변경할 수 없는 목록을 만듭니다.

public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
 static System::Collections::Immutable::ImmutableList<TSource> ^ ToImmutableList(System::Collections::Immutable::ImmutableList<TSource>::Builder ^ builder);
public static System.Collections.Immutable.ImmutableList<TSource> ToImmutableList<TSource> (this System.Collections.Immutable.ImmutableList<TSource>.Builder builder);
static member ToImmutableList : System.Collections.Immutable.ImmutableList<'Source>.Builder -> System.Collections.Immutable.ImmutableList<'Source>
<Extension()>
Public Function ToImmutableList(Of TSource) (builder As ImmutableList(Of TSource).Builder) As ImmutableList(Of TSource)

형식 매개 변수

TSource

목록에 있는 요소의 유형입니다.

매개 변수

builder
ImmutableList<TSource>.Builder

변경할 수 없는 목록을 만들 작성기입니다.

반환

ImmutableList<TSource>

작성기 컬렉션의 현재 콘텐츠를 포함하는 변경할 수 없는 목록입니다.

적용 대상