MemoryExtensions.ContainsAnyExceptInRange 方法

定义

重载

名称 说明
ContainsAnyExceptInRange<T>(ReadOnlySpan<T>, T, T)

搜索介于和非独占范围内lowInclusivehighInclusive的任何值。

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

搜索介于和非独占范围内lowInclusivehighInclusive的任何值。

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索介于和非独占范围内lowInclusivehighInclusive的任何值。

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

已排除范围的上限(含)。

返回

如果范围中存在指定范围以外的任何值,则为 。 如果范围的所有值都位于指定范围内,则 false返回 。

适用于

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

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索介于和非独占范围内lowInclusivehighInclusive的任何值。

public:
generic <typename T>
 where T : IComparable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyExceptInRange(Span<T> span, T lowInclusive, T highInclusive);
[System.Runtime.CompilerServices.OverloadResolutionPriority(-1)]
public static bool ContainsAnyExceptInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
public static bool ContainsAnyExceptInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
[<System.Runtime.CompilerServices.OverloadResolutionPriority(-1)>]
static member ContainsAnyExceptInRange : Span<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> bool (requires '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

已排除范围的上限(含)。

返回

如果范围中存在指定范围以外的任何值,则为 。 如果所有值都位于指定范围内,则 false返回 。

属性

适用于