ImmutableHashSet.Create Método
Definição
Sobrecargas
| Create<T>() |
Cria um conjunto de hash imutável vazio.Creates an empty immutable hash set. |
| Create<T>(IEqualityComparer<T>) |
Cria um conjunto de hash imutável vazio que usa o comparador de igualdade especificado.Creates an empty immutable hash set that uses the specified equality comparer. |
| Create<T>(T) |
Cria um novo conjunto de hash imutável que contém o item especificado.Creates a new immutable hash set that contains the specified item. |
| Create<T>(T[]) |
Cria um novo conjunto de hash imutável que contém a matriz de itens especificada.Creates a new immutable hash set that contains the specified array of items. |
| Create<T>(IEqualityComparer<T>, T) |
Cria um novo conjunto de hash imutável que contém o item especificado e usa o comparador de igualdade especificado para o tipo de conjunto.Creates a new immutable hash set that contains the specified item and uses the specified equality comparer for the set type. |
| Create<T>(IEqualityComparer<T>, T[]) |
Cria um novo conjunto de hash imutável que contém os itens na coleção especificada e usa o comparador de igualdade especificado para o tipo de conjunto.Creates a new immutable hash set that contains the items in the specified collection and uses the specified equality comparer for the set type. |
Create<T>()
Cria um conjunto de hash imutável vazio.Creates an empty immutable hash set.
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)
Parâmetros de tipo
- T
O tipo de itens a serem armazenados no conjunto de hash imutável.The type of items to be stored in the immutable hash set.
Retornos
Um conjunto de hash imutável vazio.An empty immutable hash set.
Aplica-se a
Create<T>(IEqualityComparer<T>)
Cria um conjunto de hash imutável vazio que usa o comparador de igualdade especificado.Creates an empty immutable hash set that uses the specified equality comparer.
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)
Parâmetros de tipo
- T
O tipo de itens no conjunto de hash imutável.The type of items in the immutable hash set.
Parâmetros
- equalityComparer
- IEqualityComparer<T>
O objeto a ser usado para a comparação dos objetos no conjunto quanto à igualdade.The object to use for comparing objects in the set for equality.
Retornos
Um conjunto de hash imutável vazio.An empty immutable hash set.
Aplica-se a
Create<T>(T)
Cria um novo conjunto de hash imutável que contém o item especificado.Creates a new immutable hash set that contains the specified item.
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)
Parâmetros de tipo
- T
O tipo de itens no conjunto de hash imutável.The type of items in the immutable hash set.
Parâmetros
- item
- T
O item com o qual preencher previamente o conjunto de hash.The item to prepopulate the hash set with.
Retornos
Um novo conjunto de hash imutável que contém o item especificado.A new immutable hash set that contains the specified item.
Aplica-se a
Create<T>(T[])
Cria um novo conjunto de hash imutável que contém a matriz de itens especificada.Creates a new immutable hash set that contains the specified array of items.
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)
Parâmetros de tipo
- T
O tipo de itens no conjunto de hash imutável.The type of items in the immutable hash set.
Parâmetros
- items
- T[]
Uma matriz que contém os itens com os quais preencher previamente o conjunto de hash.An array that contains the items to prepopulate the hash set with.
Retornos
Um novo conjunto de hash imutável que contém os itens especificados.A new immutable hash set that contains the specified items.
Aplica-se a
Create<T>(IEqualityComparer<T>, T)
Cria um novo conjunto de hash imutável que contém o item especificado e usa o comparador de igualdade especificado para o tipo de conjunto.Creates a new immutable hash set that contains the specified item and uses the specified equality comparer for the set type.
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)
Parâmetros de tipo
- T
O tipo de itens no conjunto de hash imutável.The type of items in the immutable hash set.
Parâmetros
- equalityComparer
- IEqualityComparer<T>
O objeto a ser usado para a comparação dos objetos no conjunto quanto à igualdade.The object to use for comparing objects in the set for equality.
- item
- T
O item com o qual preencher previamente o conjunto de hash.The item to prepopulate the hash set with.
Retornos
Um novo conjunto de hash imutável que contém o item especificado.A new immutable hash set that contains the specified item.
Aplica-se a
Create<T>(IEqualityComparer<T>, T[])
Cria um novo conjunto de hash imutável que contém os itens na coleção especificada e usa o comparador de igualdade especificado para o tipo de conjunto.Creates a new immutable hash set that contains the items in the specified collection and uses the specified equality comparer for the set type.
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)
Parâmetros de tipo
- T
O tipo de itens armazenados no conjunto de hash imutável.The type of items stored in the immutable hash set.
Parâmetros
- equalityComparer
- IEqualityComparer<T>
O objeto a ser usado para a comparação dos objetos no conjunto quanto à igualdade.The object to use for comparing objects in the set for equality.
- items
- T[]
Uma matriz que contém os itens com os quais preencher previamente o conjunto de hash.An array that contains the items to prepopulate the hash set with.
Retornos
Um novo conjunto de hash imutável que contém os itens especificados.A new immutable hash set that contains the specified items.