Method ContainsAnyInRange
ContainsAnyInRange<T>(ExSpan<T>, T, T)
Searches for any value in the range between lowInclusive
and highInclusive
, inclusive, and returns true if found. If not found, returns false.
public static bool ContainsAnyInRange<T>(this ExSpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
Parameters
span
ExSpan<T>The span to search.
lowInclusive
TA lower bound, inclusive, of the range for which to search.
highInclusive
TA upper bound, inclusive, of the range for which to search.
Returns
Type Parameters
T
ContainsAnyInRange<T>(ReadOnlyExSpan<T>, T, T)
Searches for any value in the range between lowInclusive
and highInclusive
, inclusive, and returns true if found. If not found, returns false.
public static bool ContainsAnyInRange<T>(this ReadOnlyExSpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>
Parameters
span
ReadOnlyExSpan<T>The span to search.
lowInclusive
TA lower bound, inclusive, of the range for which to search.
highInclusive
TA upper bound, inclusive, of the range for which to search.
Returns
Type Parameters
T