MemoryExtensions.ContainsAnyInRange 方法

定义

重载

ContainsAnyInRange<T>(ReadOnlySpan<T>, T, T)

lowInclusivehighInclusive(含)范围内搜索任何值。

ContainsAnyInRange<T>(Span<T>, T, T)

搜索 lowInclusivehighInclusive、非独占范围内的任何值,如果找到,则返回 true。 如果未找到,则返回 false

ContainsAnyInRange<T>(ReadOnlySpan<T>, T, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

lowInclusivehighInclusive(含)范围内搜索任何值。

public:
generic <typename T>
 where T : IComparable<T>[System::Runtime::CompilerServices::Extension]
 static bool ContainsAnyInRange(ReadOnlySpan<T> span, T lowInclusive, T highInclusive);
public static bool ContainsAnyInRange<T> (this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
static member ContainsAnyInRange : ReadOnlySpan<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> bool (requires 'T :> IComparable<'T>)
<Extension()>
Public Function ContainsAnyInRange(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

适用于

ContainsAnyInRange<T>(Span<T>, T, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

搜索 lowInclusivehighInclusive、非独占范围内的任何值,如果找到,则返回 true。 如果未找到,则返回 false

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

适用于