ImmutableList.ToImmutableList Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| ToImmutableList<TSource>(IEnumerable<TSource>) |
Räknar upp en sekvens och skapar en oföränderlig lista över dess innehåll. |
| ToImmutableList<TSource>(ImmutableList<TSource>.Builder) |
Skapar en oföränderlig lista från det aktuella innehållet i byggverktygets samling. |
ToImmutableList<TSource>(IEnumerable<TSource>)
- Källa:
- ImmutableList.cs
- Källa:
- ImmutableList.cs
- Källa:
- ImmutableList.cs
- Källa:
- ImmutableList.cs
- Källa:
- ImmutableList.cs
- Källa:
- ImmutableList.cs
Räknar upp en sekvens och skapar en oföränderlig lista över dess innehåll.
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)
Typparametrar
- TSource
Typ av element i sekvensen.
Parametrar
- source
- IEnumerable<TSource>
Sekvensen som ska räknas upp.
Returer
En oföränderlig lista som innehåller objekten i den angivna sekvensen.
Gäller för
ToImmutableList<TSource>(ImmutableList<TSource>.Builder)
- Källa:
- ImmutableList.cs
- Källa:
- ImmutableList.cs
- Källa:
- ImmutableList.cs
- Källa:
- ImmutableList.cs
- Källa:
- ImmutableList.cs
- Källa:
- ImmutableList.cs
Skapar en oföränderlig lista från det aktuella innehållet i byggverktygets samling.
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)
Typparametrar
- TSource
Typ av element i listan.
Parametrar
- builder
- ImmutableList<TSource>.Builder
Byggaren som du vill skapa den oföränderliga listan från.
Returer
En oföränderlig lista som innehåller det aktuella innehållet i byggverktygets samling.