Version

RemoveAll<T>(List<T>,T) Method

Removes all occurrences of itemToRemove from list.
Syntax
public static void RemoveAll<T>( 
   List<T> list,
   T itemToRemove
)

Parameters

list
List whose items should be removed
itemToRemove
The value of the items that should be removed

Type Parameters

T
Requirements

Target Platforms: Android 4.4+, iOS 8+

Development Environments: Visual Studio 2015+, Visual Studio for Mac Preview, Xamarin for Visual Studio 4.2+

See Also