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
spanExSpan<T>The span to search.
lowInclusiveTA lower bound, inclusive, of the range for which to search.
highInclusiveTA 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
spanReadOnlyExSpan<T>The span to search.
lowInclusiveTA lower bound, inclusive, of the range for which to search.
highInclusiveTA upper bound, inclusive, of the range for which to search.
Returns
Type Parameters
T