Прочетете на английски Редактиране

Споделяне чрез


FrozenSet<T>.ISet<T>.Add(T) Method

Definition

Adds an element to the current set and returns a value to indicate if the element was successfully added.

C#
bool ISet<T>.Add(T item);

Parameters

item
T

The element to add to the set.

Returns

true if the element is added to the set; false if the element is already in the set.

Implements

Applies to

Продукт Версии
.NET 8 (package-provided), 8, 9 (package-provided), 9, 10 (package-provided), 10
.NET Standard 2.0 (package-provided)