MemoryExtensions.IndexOfAnyExceptInRange 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
| 名称 | 说明 |
|---|---|
| IndexOfAnyExceptInRange<T>(ReadOnlySpan<T>, T, T) |
搜索介于和非独占范围内 |
| IndexOfAnyExceptInRange<T>(Span<T>, T, T) |
搜索介于和非独占范围内 |
IndexOfAnyExceptInRange<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 int IndexOfAnyExceptInRange(ReadOnlySpan<T> span, T lowInclusive, T highInclusive);
public static int IndexOfAnyExceptInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
static member IndexOfAnyExceptInRange : ReadOnlySpan<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> int (requires 'T :> IComparable<'T>)
<Extension()>
Public Function IndexOfAnyExceptInRange(Of T As IComparable(Of T)) (span As ReadOnlySpan(Of T), lowInclusive As T, highInclusive As T) As Integer
类型参数
- T
范围和值的类型。
参数
- span
- ReadOnlySpan<T>
要搜索的跨度。
- lowInclusive
- T
排除范围的下限(含)。
- highInclusive
- T
已排除范围的上限(含)。
返回
指定范围之外任何值的第一个匹配项范围内的索引。 如果所有值都位于指定范围内,则返回 -1。
适用于
IndexOfAnyExceptInRange<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 int IndexOfAnyExceptInRange(Span<T> span, T lowInclusive, T highInclusive);
[System.Runtime.CompilerServices.OverloadResolutionPriority(-1)]
public static int IndexOfAnyExceptInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
public static int IndexOfAnyExceptInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
[<System.Runtime.CompilerServices.OverloadResolutionPriority(-1)>]
static member IndexOfAnyExceptInRange : Span<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> int (requires 'T :> IComparable<'T>)
static member IndexOfAnyExceptInRange : Span<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> int (requires 'T :> IComparable<'T>)
<Extension()>
Public Function IndexOfAnyExceptInRange(Of T As IComparable(Of T)) (span As Span(Of T), lowInclusive As T, highInclusive As T) As Integer
类型参数
- T
范围和值的类型。
参数
- span
- Span<T>
要搜索的跨度。
- lowInclusive
- T
排除范围的下限(含)。
- highInclusive
- T
已排除范围的上限(含)。
返回
指定范围之外任何值的第一个匹配项范围内的索引。 如果所有值都位于指定范围内,则返回 -1。
- 属性