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

Definition

Removes the first occurrence of a specific object from the array segment.

 virtual bool System.Collections.Generic.ICollection<T>.Remove(T item) = System::Collections::Generic::ICollection<T>::Remove;
bool ICollection<T>.Remove (T item);
Function Remove (item As T) As Boolean Implements ICollection(Of T).Remove

Parameters

item
T T T

The object to remove from the array segment.

Returns

true if item was successfully removed from the array segment; otherwise, false. This method also returns false if item is not found in the array segment.

Implements

Exceptions

Remarks

This member is an explicit interface member implementation. It can be used only when the ArraySegment<T> instance is cast to an ICollection<T> interface.

Applies to