ImmutableHashSet.ToImmutableHashSet Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
Túlterhelések
| Name | Description |
|---|---|
| ToImmutableHashSet<TSource>(IEnumerable<TSource>) |
Számba ad egy sorozatot, és a tartalma nem módosítható kivonatkészletet hoz létre. |
| ToImmutableHashSet<TSource>(ImmutableHashSet<TSource>.Builder) |
Módosíthatatlan kivonatkészletet hoz létre a szerkesztőkészlet aktuális tartalmából. |
| ToImmutableHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>) |
Számba veszi a sorozatot, módosíthatatlan kivonatkészletet hoz létre a tartalmából, és a megadott egyenlőség-összehasonlítót használja a készlettípushoz. |
ToImmutableHashSet<TSource>(IEnumerable<TSource>)
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
Számba ad egy sorozatot, és a tartalma nem módosítható kivonatkészletet hoz létre.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableHashSet<TSource> ^ ToImmutableHashSet(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Collections.Immutable.ImmutableHashSet<TSource> ToImmutableHashSet<TSource>(this System.Collections.Generic.IEnumerable<TSource> source);
static member ToImmutableHashSet : seq<'Source> -> System.Collections.Immutable.ImmutableHashSet<'Source>
<Extension()>
Public Function ToImmutableHashSet(Of TSource) (source As IEnumerable(Of TSource)) As ImmutableHashSet(Of TSource)
Típusparaméterek
- TSource
A sorozat elemeinek típusa.
Paraméterek
- source
- IEnumerable<TSource>
Az enumerálni kívánt sorozat.
Válaszok
Nem módosítható kivonatkészlet, amely a megadott sorozat elemeit tartalmazza.
A következőre érvényes:
ToImmutableHashSet<TSource>(ImmutableHashSet<TSource>.Builder)
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
Módosíthatatlan kivonatkészletet hoz létre a szerkesztőkészlet aktuális tartalmából.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableHashSet<TSource> ^ ToImmutableHashSet(System::Collections::Immutable::ImmutableHashSet<TSource>::Builder ^ builder);
public static System.Collections.Immutable.ImmutableHashSet<TSource> ToImmutableHashSet<TSource>(this System.Collections.Immutable.ImmutableHashSet<TSource>.Builder builder);
static member ToImmutableHashSet : System.Collections.Immutable.ImmutableHashSet<'Source>.Builder -> System.Collections.Immutable.ImmutableHashSet<'Source>
<Extension()>
Public Function ToImmutableHashSet(Of TSource) (builder As ImmutableHashSet(Of TSource).Builder) As ImmutableHashSet(Of TSource)
Típusparaméterek
- TSource
A kivonatkészlet elemeinek típusa.
Paraméterek
- builder
- ImmutableHashSet<TSource>.Builder
A módosíthatatlan kivonatkészletet létrehozó szerkesztő.
Válaszok
Nem módosítható kivonatkészlet, amely a szerkesztőkészlet aktuális tartalmát tartalmazza.
A következőre érvényes:
ToImmutableHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
- Forrás:
- ImmutableHashSet.cs
Számba veszi a sorozatot, módosíthatatlan kivonatkészletet hoz létre a tartalmából, és a megadott egyenlőség-összehasonlítót használja a készlettípushoz.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Immutable::ImmutableHashSet<TSource> ^ ToImmutableHashSet(System::Collections::Generic::IEnumerable<TSource> ^ source, System::Collections::Generic::IEqualityComparer<TSource> ^ equalityComparer);
public static System.Collections.Immutable.ImmutableHashSet<TSource> ToImmutableHashSet<TSource>(this System.Collections.Generic.IEnumerable<TSource> source, System.Collections.Generic.IEqualityComparer<TSource> equalityComparer);
public static System.Collections.Immutable.ImmutableHashSet<TSource> ToImmutableHashSet<TSource>(this System.Collections.Generic.IEnumerable<TSource> source, System.Collections.Generic.IEqualityComparer<TSource>? equalityComparer);
static member ToImmutableHashSet : seq<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> System.Collections.Immutable.ImmutableHashSet<'Source>
<Extension()>
Public Function ToImmutableHashSet(Of TSource) (source As IEnumerable(Of TSource), equalityComparer As IEqualityComparer(Of TSource)) As ImmutableHashSet(Of TSource)
Típusparaméterek
- TSource
A sorozat elemeinek típusa.
Paraméterek
- source
- IEnumerable<TSource>
Az enumerálni kívánt sorozat.
- equalityComparer
- IEqualityComparer<TSource>
A készletben lévő objektumok egyenlőséghez való összehasonlításához használandó objektum.
Válaszok
Nem módosítható kivonatkészlet, amely a megadott sorrend elemeit tartalmazza, és a megadott egyenlőség-összehasonlítót használja.