Enumerable.ToHashSet Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
Aşırı Yüklemeler
| Name | Description |
|---|---|
| ToHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>) |
anahtarları karşılaştırmak için kullanarak HashSet<T> 'den bir IEnumerable<T> |
| ToHashSet<TSource>(IEnumerable<TSource>) |
bir 'den bir HashSet<T>IEnumerable<T>oluşturur. |
ToHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)
- Kaynak:
- ToCollection.cs
- Kaynak:
- ToCollection.cs
- Kaynak:
- ToCollection.cs
- Kaynak:
- ToCollection.cs
- Kaynak:
- ToCollection.cs
anahtarları karşılaştırmak için kullanarak HashSet<T> 'den bir IEnumerable<T>comparer oluşturur.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::HashSet<TSource> ^ ToHashSet(System::Collections::Generic::IEnumerable<TSource> ^ source, System::Collections::Generic::IEqualityComparer<TSource> ^ comparer);
public static System.Collections.Generic.HashSet<TSource> ToHashSet<TSource>(this System.Collections.Generic.IEnumerable<TSource> source, System.Collections.Generic.IEqualityComparer<TSource>? comparer);
public static System.Collections.Generic.HashSet<TSource> ToHashSet<TSource>(this System.Collections.Generic.IEnumerable<TSource> source, System.Collections.Generic.IEqualityComparer<TSource> comparer);
static member ToHashSet : seq<'Source> * System.Collections.Generic.IEqualityComparer<'Source> -> System.Collections.Generic.HashSet<'Source>
<Extension()>
Public Function ToHashSet(Of TSource) (source As IEnumerable(Of TSource), comparer As IEqualityComparer(Of TSource)) As HashSet(Of TSource)
Tür Parametreleri
- TSource
öğelerinin sourcetürü.
Parametreler
- source
- IEnumerable<TSource>
Kaynak IEnumerable<T> oluşturmak için.HashSet<T>
- comparer
- IEqualityComparer<TSource>
Anahtarları karşılaştırmak için bir IEqualityComparer<T> .
Döndürülenler
HashSet<T> Giriş dizisinden seçilen tür TSource değerlerini içeren bir.
Özel durumlar
source, null'e eşittir.
Ayrıca bkz.
Şunlara uygulanır
ToHashSet<TSource>(IEnumerable<TSource>)
- Kaynak:
- ToCollection.cs
- Kaynak:
- ToCollection.cs
- Kaynak:
- ToCollection.cs
- Kaynak:
- ToCollection.cs
- Kaynak:
- ToCollection.cs
bir 'den bir HashSet<T>IEnumerable<T>oluşturur.
public:
generic <typename TSource>
[System::Runtime::CompilerServices::Extension]
static System::Collections::Generic::HashSet<TSource> ^ ToHashSet(System::Collections::Generic::IEnumerable<TSource> ^ source);
public static System.Collections.Generic.HashSet<TSource> ToHashSet<TSource>(this System.Collections.Generic.IEnumerable<TSource> source);
static member ToHashSet : seq<'Source> -> System.Collections.Generic.HashSet<'Source>
<Extension()>
Public Function ToHashSet(Of TSource) (source As IEnumerable(Of TSource)) As HashSet(Of TSource)
Tür Parametreleri
- TSource
öğelerinin sourcetürü.
Parametreler
- source
- IEnumerable<TSource>
Kaynak IEnumerable<T> oluşturmak için.HashSet<T>
Döndürülenler
HashSet<T> Giriş dizisinden seçilen tür TSource değerlerini içeren bir.
Özel durumlar
source, null'e eşittir.