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

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


FrozenSet<T>.ICollection<T>.Remove(T) Method

Definition

Removes the first occurrence of a specific object from the ICollection<T>.

C#
bool ICollection<T>.Remove(T item);

Parameters

item
T

The object to remove from the ICollection<T>.

Returns

true if item was successfully removed from the ICollection<T>; otherwise, false. This method also returns false if item is not found in the original ICollection<T>.

Implements

Applies to

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