MemoryExtensions.LastIndexOfAnyExceptInRange メソッド

定義

オーバーロード

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

と の範囲 lowInclusive を含む範囲外の値の最後のインデックスを highInclusive検索します。

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

と の範囲 lowInclusive を含む範囲外の値の最後のインデックスを highInclusive検索します。

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

Source:
MemoryExtensions.cs
Source:
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);
public static int LastIndexOfAnyExceptInRange<T> (this Span<T> span, T lowInclusive, T highInclusive) where 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 を返します。

適用対象

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

Source:
MemoryExtensions.cs
Source:
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 を返します。

適用対象