MemoryExtensions.LastIndexOfAnyExceptInRange Metodo

Definizione

Overload

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

Cerca l'ultimo indice di qualsiasi valore al di fuori dell'intervallo tra lowInclusive e highInclusive, inclusi.

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

Cerca l'ultimo indice di qualsiasi valore al di fuori dell'intervallo tra lowInclusive e highInclusive, inclusi.

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

Origine:
MemoryExtensions.cs
Origine:
MemoryExtensions.cs

Cerca l'ultimo indice di qualsiasi valore al di fuori dell'intervallo tra lowInclusive e highInclusive, inclusi.

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

Parametri di tipo

T

Tipo di intervallo e valori.

Parametri

span
Span<T>

Intervallo da ricercare.

lowInclusive
T

Limite inferiore, inclusivo, dell'intervallo escluso.

highInclusive
T

Limite superiore, inclusivo, dell'intervallo escluso.

Restituisce

Indice nell'intervallo dell'ultima occorrenza di qualsiasi valore esterno all'intervallo specificato. Se tutti i valori si trovano all'interno dell'intervallo specificato, restituisce -1.

Si applica a

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

Origine:
MemoryExtensions.cs
Origine:
MemoryExtensions.cs

Cerca l'ultimo indice di qualsiasi valore al di fuori dell'intervallo tra lowInclusive e highInclusive, inclusi.

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

Parametri di tipo

T

Tipo di intervallo e valori.

Parametri

span
ReadOnlySpan<T>

Intervallo da ricercare.

lowInclusive
T

Limite inferiore, inclusivo, dell'intervallo escluso.

highInclusive
T

Limite superiore, inclusivo, dell'intervallo escluso.

Restituisce

Indice nell'intervallo dell'ultima occorrenza di qualsiasi valore esterno all'intervallo specificato. Se tutti i valori si trovano all'interno dell'intervallo specificato, restituisce -1.

Si applica a