ArrayExtensions.Filter<T>
Extension Method in ArrayExtensions
Declaration
public static T[] Filter<T>(this T[] array, Predicate<T> predicate)
Description
Filters the array to only contain elements that satisfy a predicate.
Type Parameters
T | The type of the array. |
Parameters
array | The array to filter. |
predicate | The predicate to use. |
Returns
T[] | A new array with the filtered elements removed. |