ImmutableHashSet<T>.IImmutableSet<T>.Add(T) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the specified element to this immutable set.
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
Parameters
- item
- T
The element to add.
Returns
A new set with the element added, or this set if the element is already in the set.
Implements
Remarks
This member is an explicit interface member implementation. It can be used only when the ImmutableHashSet<T> instance is cast to an IImmutableSet<T> interface.
Applies to
Colaborați cu noi pe GitHub
Sursa pentru acest conținut poate fi găsită pe GitHub, unde puteți, de asemenea, să creați și să consultați probleme și solicitări de tragere. Pentru mai multe informații, consultați ghidul nostru pentru colaboratori.