Method Extract
Extract<T>(List<T>, Func<T, bool>)
Extract the elements that meet the condition and remove the extracted elements from the source list
Declaration
public static List<T> Extract<T>(this List<T> targetList, Func<T, bool> condition)
Parameters
| Type | Name | Description |
|---|---|---|
| List<T> | targetList | Target list |
| Func<T, bool> | condition | Condition |
Returns
| Type | Description |
|---|---|
| List<T> | List of eligible elements |
Type Parameters
| Name | Description |
|---|---|
| T | Value type |