ImmutableHashSet<T>.IImmutableSet<T>.Add(T) Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Adiciona o elemento especificado a este conjunto imutável.
virtual System::Collections::Immutable::IImmutableSet<T> ^ System.Collections.Immutable.IImmutableSet<T>.Add(T item) = System::Collections::Immutable::IImmutableSet<T>::Add;
System.Collections.Immutable.IImmutableSet<T> IImmutableSet<T>.Add(T item);
abstract member System.Collections.Immutable.IImmutableSet<T>.Add : 'T -> System.Collections.Immutable.IImmutableSet<'T>
override this.System.Collections.Immutable.IImmutableSet<T>.Add : 'T -> System.Collections.Immutable.IImmutableSet<'T>
Function Add (item As T) As IImmutableSet(Of T) Implements IImmutableSet(Of T).Add
Parâmetros
- item
- T
O elemento a acrescentar.
Devoluções
Um novo conjunto com o elemento adicionado, ou este conjunto se o elemento já estiver no conjunto.
Implementações
Observações
Este membro é uma implementação explícita de membro de interface. Só pode ser usado quando a ImmutableHashSet<T> instância é transmitida para uma IImmutableSet<T> interface.