CollectionExtensionsRemoveRangeT Method |
Namespace:
Xcalibur.Extensions
Assembly:
Xcalibur.Extensions (in Xcalibur.Extensions.dll) Version: 1.0.4.0 (1.0.0.0)
Syntax public static void RemoveRange<T>(
this IList<T> items,
IEnumerable<T> collection
)
<ExtensionAttribute>
Public Shared Sub RemoveRange(Of T) (
items As IList(Of T),
collection As IEnumerable(Of T)
)
public:
[ExtensionAttribute]
generic<typename T>
static void RemoveRange(
IList<T>^ items,
IEnumerable<T>^ collection
)
[<ExtensionAttribute>]
static member RemoveRange :
items : IList<'T> *
collection : IEnumerable<'T> -> unit
Parameters
- items
- Type: System.Collections.GenericIListT
The items. - collection
- Type: System.Collections.GenericIEnumerableT
The collection.
Type Parameters
- T
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IListT. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Examples 1collection.RemoveRange(newCollection.Where(p => p.IsSelected == false));
See Also