ImmutableHashSet.CreateRange 메서드

정의

오버로드

CreateRange<T>(IEnumerable<T>)

지정된 항목으로 미리 채워진 변경할 수 없는 새 해시 집합을 만듭니다.

CreateRange<T>(IEqualityComparer<T>, IEnumerable<T>)

지정된 항목을 포함하고 집합 형식에 지정된 같음 비교자를 사용하는 변경할 수 없는 새 해시 집합을 만듭니다.

CreateRange<T>(IEnumerable<T>)

Source:
ImmutableHashSet.cs
Source:
ImmutableHashSet.cs
Source:
ImmutableHashSet.cs

지정된 항목으로 미리 채워진 변경할 수 없는 새 해시 집합을 만듭니다.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableHashSet<T> ^ CreateRange(System::Collections::Generic::IEnumerable<T> ^ items);
public static System.Collections.Immutable.ImmutableHashSet<T> CreateRange<T> (System.Collections.Generic.IEnumerable<T> items);
static member CreateRange : seq<'T> -> System.Collections.Immutable.ImmutableHashSet<'T>
Public Function CreateRange(Of T) (items As IEnumerable(Of T)) As ImmutableHashSet(Of T)

형식 매개 변수

T

컬렉션에 의해 저장되는 항목의 형식입니다.

매개 변수

items
IEnumerable<T>

해시 집합에 추가할 항목입니다.

반환

지정된 항목이 포함된 변경할 수 없는 새 해시 집합입니다.

적용 대상

CreateRange<T>(IEqualityComparer<T>, IEnumerable<T>)

Source:
ImmutableHashSet.cs
Source:
ImmutableHashSet.cs
Source:
ImmutableHashSet.cs

지정된 항목을 포함하고 집합 형식에 지정된 같음 비교자를 사용하는 변경할 수 없는 새 해시 집합을 만듭니다.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableHashSet<T> ^ CreateRange(System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer, System::Collections::Generic::IEnumerable<T> ^ items);
public static System.Collections.Immutable.ImmutableHashSet<T> CreateRange<T> (System.Collections.Generic.IEqualityComparer<T> equalityComparer, System.Collections.Generic.IEnumerable<T> items);
public static System.Collections.Immutable.ImmutableHashSet<T> CreateRange<T> (System.Collections.Generic.IEqualityComparer<T>? equalityComparer, System.Collections.Generic.IEnumerable<T> items);
static member CreateRange : System.Collections.Generic.IEqualityComparer<'T> * seq<'T> -> System.Collections.Immutable.ImmutableHashSet<'T>
Public Function CreateRange(Of T) (equalityComparer As IEqualityComparer(Of T), items As IEnumerable(Of T)) As ImmutableHashSet(Of T)

형식 매개 변수

T

컬렉션에 저장되는 항목의 형식입니다.

매개 변수

equalityComparer
IEqualityComparer<T>

집합의 개체가 같은지 비교하는 데 사용할 개체입니다.

items
IEnumerable<T>

불변성이 적용되기 전에 컬렉션에 추가할 항목입니다.

반환

변경할 수 없는 새 해시 집합입니다.

적용 대상