MemoryExtensions.ContainsAnyInRange Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
ContainsAnyInRange<T>(ReadOnlySpan<T>, T, T) |
Searches for any value in the range between |
ContainsAnyInRange<T>(Span<T>, T, T) |
Searches for any value in the range between |
- Source:
- MemoryExtensions.cs
- Source:
- MemoryExtensions.cs
Searches for any value in the range between lowInclusive
and highInclusive
, inclusive.
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
Type Parameters
- T
Parameters
- span
- ReadOnlySpan<T>
The span to search.
- lowInclusive
- T
The lower bound, inclusive, of the range for which to search.
- highInclusive
- T
The upper bound, inclusive, of the range for which to search.
Returns
true
if found. If not found, returns false
.
Applies to
.NET 10 и други версии
Продукт | Версии |
---|---|
.NET | 8, 9, 10 |
- Source:
- MemoryExtensions.cs
- Source:
- MemoryExtensions.cs
Searches for any value in the range between lowInclusive
and highInclusive
, inclusive, and returns true
if found. If not found, returns false
.
public:
generic <typename T>
where T : IComparable<T>[System::Runtime::CompilerServices::Extension]
static bool ContainsAnyInRange(Span<T> span, T lowInclusive, T highInclusive);
[System.Runtime.CompilerServices.OverloadResolutionPriority(-1)]
public static bool ContainsAnyInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
public static bool ContainsAnyInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
[<System.Runtime.CompilerServices.OverloadResolutionPriority(-1)>]
static member ContainsAnyInRange : Span<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> bool (requires '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
Type Parameters
- T
Parameters
- span
- Span<T>
The span to search.
- lowInclusive
- T
The lower bound, inclusive, of the range for which to search.
- highInclusive
- T
The upper bound, inclusive, of the range for which to search.
Returns
true
if found. If not found, returns false
.
- Attributes
Applies to
.NET 10 и други версии
Продукт | Версии |
---|---|
.NET | 8, 9, 10 |
Обратна връзка за .NET
.NET е проект с отворен код. Изберете връзка, за да предоставите обратна връзка: