Click or drag to resize

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
)

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: Int32
Number 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