共用方式為


MemoryExtensions.ContainsAnyExceptInRange 方法

定義

多載

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

在 和 highInclusive 之間 lowInclusive 搜尋範圍以外的任何值。

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

在 和 highInclusive 之間 lowInclusive 搜尋範圍以外的任何值。

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

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs

在 和 highInclusive 之間 lowInclusive 搜尋範圍以外的任何值。

public:
generic <typename T>
 where T : IComparable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExceptInRange(ReadOnlySpan<T> span, T lowInclusive, T highInclusive);
public static bool ContainsAnyExceptInRange<T> (this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
static member ContainsAnyExceptInRange : ReadOnlySpan<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> bool (requires 'T :> IComparable<'T>)
<Extension()>
Public Function ContainsAnyExceptInRange(Of T As IComparable(Of T)) (span As ReadOnlySpan(Of T), lowInclusive As T, highInclusive As T) As Boolean

類型參數

T

參數

span
ReadOnlySpan<T>

要搜尋的範圍。

lowInclusive
T

排除範圍的下限,包含。

highInclusive
T

排除範圍的上限,包含。

傳回

true 如果指定範圍中以外的值存在於範圍中,則為 。 如果所有值都位於指定的範圍內,則傳 false 回 。

適用於

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

來源:
MemoryExtensions.cs
來源:
MemoryExtensions.cs

在 和 highInclusive 之間 lowInclusive 搜尋範圍以外的任何值。

public:
generic <typename T>
 where T : IComparable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExceptInRange(Span<T> span, T lowInclusive, T highInclusive);
public static bool ContainsAnyExceptInRange<T> (this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
static member ContainsAnyExceptInRange : Span<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> bool (requires 'T :> IComparable<'T>)
<Extension()>
Public Function ContainsAnyExceptInRange(Of T As IComparable(Of T)) (span As Span(Of T), lowInclusive As T, highInclusive As T) As Boolean

類型參數

T

參數

span
Span<T>

要搜尋的範圍。

lowInclusive
T

排除範圍的下限,包含。

highInclusive
T

排除範圍的上限,包含。

傳回

true 如果指定範圍中以外的值存在於範圍中,則為 。 如果所有值都位於指定的範圍內,則傳 false 回 。

適用於