Method MostMatch
MostMatch(IEnumerable<string>, Func<string, bool>, float)
Determines whether most items satisfy a predicate.
Declaration
public static bool MostMatch(IEnumerable<string> paths, Func<string, bool> predicate, float minRatio = 0.75)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<string> | paths | Items to evaluate. |
| Func<string, bool> | predicate | Predicate used for matching. |
| float | minRatio | Minimum ratio of matches required. |
Returns
| Type | Description |
|---|---|
| bool | True when the ratio of matches meets or exceeds the threshold. |