AdvisableCollection<T>.Remove Method |
Removes the first occurrence of a specific object from the ICollection<T>.
Namespace: PostSharp.Patterns.Collections
Assembly: PostSharp.Patterns.Common (in PostSharp.Patterns.Common.dll) Version: 2023.0.3.0 (2023.0.3.0)
C#
public bool Remove( T item )
Parameters
- item
- Type: T
The object to remove from the ICollection<T>.
Return Value
Type: Booleantrue 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
ICollection<T>.Remove(T)Exception | Condition |
---|---|
NotSupportedException | The ICollection<T> is read-only. |