Table of Contents

Method ContainsAnyExceptInRange

Namespace
Zyl.ExSpans
Assembly
ExSpans.dll

ContainsAnyExceptInRange<T>(ExSpan<T>, T, T)

Searches for any value outside of the range between lowInclusive and highInclusive, inclusive.

public static bool ContainsAnyExceptInRange<T>(this ExSpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>

Parameters

span ExSpan<T>

The span to search.

lowInclusive T

A lower bound, inclusive, of the excluded range.

highInclusive T

A upper bound, inclusive, of the excluded range.

Returns

bool

True if any value other than those in the specified range is present in the span. If all of the values are inside of the specified range, returns false.

Type Parameters

T

ContainsAnyExceptInRange<T>(ReadOnlyExSpan<T>, T, T)

Searches for any value outside of the range between lowInclusive and highInclusive, inclusive.

public static bool ContainsAnyExceptInRange<T>(this ReadOnlyExSpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>

Parameters

span ReadOnlyExSpan<T>

The span to search.

lowInclusive T

A lower bound, inclusive, of the excluded range.

highInclusive T

A upper bound, inclusive, of the excluded range.

Returns

bool

True if any value other than those in the specified range is present in the span. If all of the values are inside of the specified range, returns false.

Type Parameters

T