ReactiveList.Remove(T) method¶
Defined in
Type: ReactiveListReactiveList.Reactive.Collections
Assembly: ReactiveList.Reactive.dll
Applies to
net11.0, net10.0, net47, net471, net472, net48, net481
Overloads¶
-
public bool Remove(T item) -
public void Remove(IEnumerable<T> items) -
public void Remove(object? value)
1. Overload¶
public bool Remove(T item)
View source (opens in a new tab)
Inherited documentation
These docs were inherited from ICollection<T>. The member doesn't override them on this type.
Summary: Removes the first occurrence of a specific object from the ICollection (opens in a new tab).
Parameters
| Name | Type | Description |
|---|---|---|
item | T | The object to remove from the ICollection (opens in a new tab). |
Returns: bool (opens in a new tab) --
true if item was successfully removed from the ICollection (opens in a new tab); otherwise, false. This method also returns false if item is not found in the original ICollection (opens in a new tab).
Exceptions
| Type | Condition |
|---|---|
| System.NotSupportedException (opens in a new tab) | The ICollection (opens in a new tab) is read-only. |
2. Overload¶
public void Remove(IEnumerable<T> items)
View source (opens in a new tab)
Inherited documentation
These docs were inherited from IReactiveList<T>. The member doesn't override them on this type.
Summary: Removes the specified items.
Parameters
| Name | Type | Description |
|---|---|---|
items | IEnumerable | The items. |
Remarks
Each requested item removes one matching occurrence, earliest first, in a single pass.
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException (opens in a new tab) | Thrown when items is null. |
3. Overload¶
public void Remove(object? value)
View source (opens in a new tab)
Inherited documentation
These docs were inherited from IList. The member doesn't override them on this type.
Summary: Removes the first occurrence of a specific object from the IList (opens in a new tab).
Parameters
| Name | Type | Description |
|---|---|---|
value | object? (opens in a new tab) | The object to remove from the IList (opens in a new tab). |
Exceptions
| Type | Condition |
|---|---|
| System.NotSupportedException (opens in a new tab) | The IList (opens in a new tab) is read-only. -or- The IList (opens in a new tab) has a fixed size. |