MemoryExtensions.IndexOfAnyExceptInRange Método

Definición

Sobrecargas

IndexOfAnyExceptInRange<T>(Span<T>, T, T)

Busca el primer índice de cualquier valor fuera del intervalo entre lowInclusive y highInclusive, ambos incluidos.

IndexOfAnyExceptInRange<T>(ReadOnlySpan<T>, T, T)

Busca el primer índice de cualquier valor fuera del intervalo entre lowInclusive y highInclusive, ambos incluidos.

IndexOfAnyExceptInRange<T>(Span<T>, T, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Busca el primer índice de cualquier valor fuera del intervalo entre lowInclusive y highInclusive, ambos incluidos.

public:
generic <typename T>
 where T : IComparable<T>[System::Runtime::CompilerServices::Extension]
 static int IndexOfAnyExceptInRange(Span<T> span, T lowInclusive, T highInclusive);
public static int IndexOfAnyExceptInRange<T> (this Span<T> span, T lowInclusive, T highInclusive) where 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

Parámetros de tipo

T

Tipo del intervalo y los valores.

Parámetros

span
Span<T>

Intervalo que se va a buscar.

lowInclusive
T

Límite inferior, inclusivo, del intervalo excluido.

highInclusive
T

Límite superior, inclusivo, del intervalo excluido.

Devoluciones

Índice en el intervalo de la primera aparición de cualquier valor fuera del intervalo especificado. Si todos los valores están dentro del intervalo especificado, devuelve -1.

Se aplica a

IndexOfAnyExceptInRange<T>(ReadOnlySpan<T>, T, T)

Source:
MemoryExtensions.cs
Source:
MemoryExtensions.cs

Busca el primer índice de cualquier valor fuera del intervalo entre lowInclusive y highInclusive, ambos incluidos.

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

Parámetros de tipo

T

Tipo del intervalo y los valores.

Parámetros

span
ReadOnlySpan<T>

Intervalo que se va a buscar.

lowInclusive
T

Límite inferior, inclusivo, del intervalo excluido.

highInclusive
T

Límite superior, inclusivo, del intervalo excluido.

Devoluciones

Índice en el intervalo de la primera aparición de cualquier valor fuera del intervalo especificado. Si todos los valores están dentro del intervalo especificado, devuelve -1.

Se aplica a