ExtensionMethodsRemoveT Method |
Removes all items matches the condition of an ObservableCollection
Namespace:
Hummingbird.TestFramework
Assembly:
Hummingbird.TestFramework (in Hummingbird.TestFramework.dll) Version: 1.2.0.0
Syntax public static int Remove<T>(
this ObservableCollection<T> coll,
Func<T, bool> condition
)
<ExtensionAttribute>
Public Shared Function Remove(Of T) (
coll As ObservableCollection(Of T),
condition As Func(Of T, Boolean)
) As Integer
public:
[ExtensionAttribute]
generic<typename T>
static int Remove(
ObservableCollection<T>^ coll,
Func<T, bool>^ condition
)
[<ExtensionAttribute>]
static member Remove :
coll : ObservableCollection<'T> *
condition : Func<'T, bool> -> int
Parameters
- coll
- Type: System.Collections.ObjectModelObservableCollectionT
The container ObservableCollection - condition
- Type: SystemFuncT, Boolean
Condition where the items should be removed.
Type Parameters
- T
- Type of objects in the ObservableCollection
Return Value
Type:
Int32Number of items removed from the collection
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
ObservableCollectionT. 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).
See Also