'Declaration<ExtensionAttribute()> Public Shared Sub RemoveRange(Of T)( _ ByVal collection As ICollection(Of T), _ ByVal items As IEnumerable(Of T) _ )
'UsageDim collection As ICollection(Of T) Dim items As IEnumerable(Of T) ICollectionExtension.RemoveRange(Of T)(collection, items)
[Extension()] public static void RemoveRange<T>( ICollection<T> collection, IEnumerable<T> items )
[Extension()] public: static void RemoveRangegeneric<typename T> ( ICollection<T^>^ collection, IEnumerable<T^>^ items )
Parameters
- collection
- The collection from which items will be removed. Must not be
null.The value of this parameter cannot be
null(Nothingin Visual Basic).The individual elements of the parameter value can be
null(Nothingin Visual Basic). - items
- The items to remove from the collection. Must not be
null.The value of this parameter cannot be
null(Nothingin Visual Basic).
Type Parameters
- T
- The type of elements in the collection.