Note
If collection is neither a ListT nor an ISupportsRangeListT implementation,
then the elements will be removed one by one.
public static void RemoveRange<T>(
this IList<T> collection,
int index,
int count
)
<ExtensionAttribute>
Public Shared Sub RemoveRange(Of T) (
collection As IList(Of T),
index As Integer,
count As Integer
)
public:
[ExtensionAttribute]
generic<typename T>
static void RemoveRange(
IList<T>^ collection,
int index,
int count
)
[<ExtensionAttribute>]
static member RemoveRange :
collection : IList<'T> *
index : int *
count : int -> unit
ArgumentOutOfRangeException | index is not a valid index in the CircularListT.
-or- count is less than 0. |
ArgumentException | index and count do not denote a valid range of elements in the list. |