MemoryExtensions.ContainsAnyExceptInRange Method

Definition

Overloads

ContainsAnyExceptInRange<T>(ReadOnlySpan<T>, T, T)

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

ContainsAnyExceptInRange<T>(Span<T>, T, T)

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

ContainsAnyExceptInRange<T>(ReadOnlySpan<T>, T, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

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

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

Type Parameters

T

Parameters

span
ReadOnlySpan<T>

The span to search.

lowInclusive
T

The lower bound, inclusive, of the excluded range.

highInclusive
T

The upper bound, inclusive, of the excluded range.

Returns

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.

Applies to

.NET 9 dan .NET 8
Produk Versi
.NET 8, 9

ContainsAnyExceptInRange<T>(Span<T>, T, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

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

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

Type Parameters

T

Parameters

span
Span<T>

The span to search.

lowInclusive
T

The lower bound, inclusive, of the excluded range.

highInclusive
T

The upper bound, inclusive, of the excluded range.

Returns

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.

Applies to

.NET 9 dan .NET 8
Produk Versi
.NET 8, 9