System::Collections::Generic::BaseSet::TryAdd metodo

BaseSet::TryAdd method

Aggiunge un elemento al set.

bool System::Collections::Generic::BaseSet<T, SET_T>::TryAdd(const T &item)
ParametroTipoDescrizione
elementoconst T&Elemento da aggiungere.

ReturnValue

True se l’elemento è stato aggiunto, false se esiste già.

Vedi anche