語言

MemoryExtensions.LastIndexOfAnyExceptInRange 方法

定義

搜尋任何超出 lowInclusive 與 highInclusive之間範圍的最後索引。

多載

名稱 Description
LastIndexOfAnyExceptInRange<T>(ReadOnlySpan<T>, T, T)

搜尋任何超出 lowInclusive 與 highInclusive之間範圍的最後索引。

LastIndexOfAnyExceptInRange<T>(Span<T>, T, T)

搜尋任何超出 lowInclusive 與 highInclusive之間範圍的最後索引。

LastIndexOfAnyExceptInRange<T>(ReadOnlySpan<T>, T, T)

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

搜尋任何超出 lowInclusive 與 highInclusive之間範圍的最後索引。

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

適用於

LastIndexOfAnyExceptInRange<T>(Span<T>, T, T)

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

搜尋任何超出 lowInclusive 與 highInclusive之間範圍的最後索引。

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

屬性

適用於