ImmutableHashSet.Create 메서드

정의

오버로드

Create<T>()

변경할 수 없는 빈 해시 집합을 만듭니다.

Create<T>(IEqualityComparer<T>)

지정된 같음 비교자를 사용하는 변경할 수 없는 빈 해시 집합을 만듭니다.

Create<T>(ReadOnlySpan<T>)

지정된 항목으로 미리 채워진 변경할 수 없는 새 컬렉션을 만듭니다.

Create<T>(T)

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

Create<T>(T[])

지정된 항목 배열이 포함된 변경할 수 없는 새 해시 집합을 만듭니다.

Create<T>(IEqualityComparer<T>, ReadOnlySpan<T>)

지정된 항목으로 미리 채워진 변경할 수 없는 새 컬렉션을 만듭니다.

Create<T>(IEqualityComparer<T>, T)

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

Create<T>(IEqualityComparer<T>, T[])

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

Create<T>()

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

변경할 수 없는 빈 해시 집합을 만듭니다.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableHashSet<T> ^ Create();
public static System.Collections.Immutable.ImmutableHashSet<T> Create<T> ();
static member Create : unit -> System.Collections.Immutable.ImmutableHashSet<'T>
Public Function Create(Of T) () As ImmutableHashSet(Of T)

형식 매개 변수

T

변경할 수 없는 해시 집합에 저장할 항목의 형식입니다.

반환

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

적용 대상

Create<T>(IEqualityComparer<T>)

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

지정된 같음 비교자를 사용하는 변경할 수 없는 빈 해시 집합을 만듭니다.

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

형식 매개 변수

T

변경할 수 없는 해시 집합에 있는 항목의 형식입니다.

매개 변수

equalityComparer
IEqualityComparer<T>

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

반환

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

적용 대상

Create<T>(ReadOnlySpan<T>)

Source:
ImmutableHashSet.cs
Source:
ImmutableHashSet.cs

지정된 항목으로 미리 채워진 변경할 수 없는 새 컬렉션을 만듭니다.

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

형식 매개 변수

T

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

매개 변수

items
ReadOnlySpan<T>

미리 채운 항목입니다.

반환

변경할 수 없는 새 컬렉션입니다.

적용 대상

Create<T>(T)

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

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

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableHashSet<T> ^ Create(T item);
public static System.Collections.Immutable.ImmutableHashSet<T> Create<T> (T item);
static member Create : 'T -> System.Collections.Immutable.ImmutableHashSet<'T>
Public Function Create(Of T) (item As T) As ImmutableHashSet(Of T)

형식 매개 변수

T

변경할 수 없는 해시 집합에 있는 항목의 형식입니다.

매개 변수

item
T

해시 집합을 미리 채울 항목입니다.

반환

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

적용 대상

Create<T>(T[])

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

지정된 항목 배열이 포함된 변경할 수 없는 새 해시 집합을 만듭니다.

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableHashSet<T> ^ Create(... cli::array <T> ^ items);
public static System.Collections.Immutable.ImmutableHashSet<T> Create<T> (params T[] items);
static member Create : 'T[] -> System.Collections.Immutable.ImmutableHashSet<'T>
Public Function Create(Of T) (ParamArray items As T()) As ImmutableHashSet(Of T)

형식 매개 변수

T

변경할 수 없는 해시 집합에 있는 항목의 형식입니다.

매개 변수

items
T[]

해시 집합을 미리 채우는 데 사용할 항목이 포함된 배열입니다.

반환

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

적용 대상

Create<T>(IEqualityComparer<T>, ReadOnlySpan<T>)

Source:
ImmutableHashSet.cs
Source:
ImmutableHashSet.cs

지정된 항목으로 미리 채워진 변경할 수 없는 새 컬렉션을 만듭니다.

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

형식 매개 변수

T

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

매개 변수

equalityComparer
IEqualityComparer<T>

같음 비교자입니다.

items
ReadOnlySpan<T>

미리 채운 항목입니다.

반환

변경할 수 없는 새 컬렉션입니다.

적용 대상

Create<T>(IEqualityComparer<T>, T)

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

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

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

형식 매개 변수

T

변경할 수 없는 해시 집합에 있는 항목의 형식입니다.

매개 변수

equalityComparer
IEqualityComparer<T>

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

item
T

해시 집합을 미리 채울 항목입니다.

반환

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

적용 대상

Create<T>(IEqualityComparer<T>, T[])

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

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

public:
generic <typename T>
 static System::Collections::Immutable::ImmutableHashSet<T> ^ Create(System::Collections::Generic::IEqualityComparer<T> ^ equalityComparer, ... cli::array <T> ^ items);
public static System.Collections.Immutable.ImmutableHashSet<T> Create<T> (System.Collections.Generic.IEqualityComparer<T> equalityComparer, params T[] items);
public static System.Collections.Immutable.ImmutableHashSet<T> Create<T> (System.Collections.Generic.IEqualityComparer<T>? equalityComparer, params T[] items);
static member Create : System.Collections.Generic.IEqualityComparer<'T> * 'T[] -> System.Collections.Immutable.ImmutableHashSet<'T>
Public Function Create(Of T) (equalityComparer As IEqualityComparer(Of T), ParamArray items As T()) As ImmutableHashSet(Of T)

형식 매개 변수

T

변경할 수 없는 해시 집합에 저장된 항목의 형식입니다.

매개 변수

equalityComparer
IEqualityComparer<T>

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

items
T[]

해시 집합을 미리 채우는 데 사용할 항목이 포함된 배열입니다.

반환

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

적용 대상