Enumerable.ToHashSet 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
| Name | Description |
|---|---|
| ToHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>) |
HashSet<T> 사용하여 키를 비교하는 IEnumerable<T> |
| ToHashSet<TSource>(IEnumerable<TSource>) |
HashSet<T> IEnumerable<T> 만듭니다. |
ToHashSet<TSource>(IEnumerable<TSource>, IEqualityComparer<TSource>)
- Source:
- ToCollection.cs
- Source:
- ToCollection.cs
- Source:
- ToCollection.cs
- Source:
- ToCollection.cs
- Source:
- ToCollection.cs
HashSet<T> 사용하여 키를 비교하는 IEnumerable<T>comparer 만듭니다.
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)
형식 매개 변수
- TSource
의 요소 형식입니다 source.
매개 변수
- source
- IEnumerable<TSource>
IEnumerable<T> 만들려는 항목입니다HashSet<T>.
- comparer
- IEqualityComparer<TSource>
IEqualityComparer<T> 키를 비교할 수 있는 항목입니다.
반품
입력 시퀀스에서 선택한 형식 HashSet<T> 의 값을 포함하는 A TSource 입니다.
예외
source은 null입니다.
추가 정보
적용 대상
ToHashSet<TSource>(IEnumerable<TSource>)
- Source:
- ToCollection.cs
- Source:
- ToCollection.cs
- Source:
- ToCollection.cs
- Source:
- ToCollection.cs
- Source:
- ToCollection.cs
HashSet<T> IEnumerable<T> 만듭니다.
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)
형식 매개 변수
- TSource
의 요소 형식입니다 source.
매개 변수
- source
- IEnumerable<TSource>
IEnumerable<T> 만들려는 항목입니다HashSet<T>.
반품
입력 시퀀스에서 선택한 형식 HashSet<T> 의 값을 포함하는 A TSource 입니다.
예외
source은 null입니다.