ImmutableList.ToImmutableList Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ToImmutableList<TSource>(IEnumerable<TSource>) |
Enumerates a sequence and produces an immutable list of its contents. |
ToImmutableList<TSource>(ImmutableList<TSource>.Builder) |
Creates an immutable list from the current contents of the builder's collection. |
ToImmutableList<TSource>(IEnumerable<TSource>)
- Source:
- ImmutableList.cs
- Source:
- ImmutableList.cs
- Source:
- ImmutableList.cs
Enumerates a sequence and produces an immutable list of its contents.
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)
Type Parameters
- TSource
The type of the elements in the sequence.
Parameters
- source
- IEnumerable<TSource>
The sequence to enumerate.
Returns
An immutable list that contains the items in the specified sequence.
Applies to
ToImmutableList<TSource>(ImmutableList<TSource>.Builder)
- Source:
- ImmutableList.cs
- Source:
- ImmutableList.cs
- Source:
- ImmutableList.cs
Creates an immutable list from the current contents of the builder's collection.
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)
Type Parameters
- TSource
The type of the elements in the list.
Parameters
- builder
- ImmutableList<TSource>.Builder
The builder to create the immutable list from.
Returns
An immutable list that contains the current contents in the builder's collection.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기