MemoryExtensions.LastIndexOfAnyInRange Método
Definição
Importante
Algumas informações dizem respeito a um produto pré-lançado que pode ser substancialmente modificado antes de ser lançado. A Microsoft não faz garantias, de forma expressa ou implícita, em relação à informação aqui apresentada.
Sobrecargas
| Name | Description |
|---|---|
| LastIndexOfAnyInRange<T>(ReadOnlySpan<T>, T, T) |
Procura o último índice de qualquer valor no intervalo entre |
| LastIndexOfAnyInRange<T>(Span<T>, T, T) |
Procura o último índice de qualquer valor no intervalo entre |
LastIndexOfAnyInRange<T>(ReadOnlySpan<T>, T, T)
- Origem:
- MemoryExtensions.cs
- Origem:
- MemoryExtensions.cs
- Origem:
- MemoryExtensions.cs
- Origem:
- MemoryExtensions.cs
Procura o último índice de qualquer valor no intervalo entre lowInclusive e highInclusive, inclusive.
public:
generic <typename T>
where T : IComparable<T>[System::Runtime::CompilerServices::Extension]
static int LastIndexOfAnyInRange(ReadOnlySpan<T> span, T lowInclusive, T highInclusive);
public static int LastIndexOfAnyInRange<T>(this ReadOnlySpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
static member LastIndexOfAnyInRange : ReadOnlySpan<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> int (requires 'T :> IComparable<'T>)
<Extension()>
Public Function LastIndexOfAnyInRange(Of T As IComparable(Of T)) (span As ReadOnlySpan(Of T), lowInclusive As T, highInclusive As T) As Integer
Parâmetros de Tipo Genérico
- T
O tipo de extensão e os valores.
Parâmetros
- span
- ReadOnlySpan<T>
O tempo para procurar.
- lowInclusive
- T
O limite inferior, inclusivo, do intervalo para o qual procurar.
- highInclusive
- T
O limite superior, inclusivo, do intervalo para procurar.
Devoluções
O índice no intervalo da última ocorrência de qualquer valor no intervalo especificado. Se todos os valores estiverem fora do intervalo especificado, retorna -1.
Aplica-se a
LastIndexOfAnyInRange<T>(Span<T>, T, T)
- Origem:
- MemoryExtensions.cs
- Origem:
- MemoryExtensions.cs
- Origem:
- MemoryExtensions.cs
- Origem:
- MemoryExtensions.cs
Procura o último índice de qualquer valor no intervalo entre lowInclusive e highInclusive, inclusive.
public:
generic <typename T>
where T : IComparable<T>[System::Runtime::CompilerServices::Extension]
static int LastIndexOfAnyInRange(Span<T> span, T lowInclusive, T highInclusive);
[System.Runtime.CompilerServices.OverloadResolutionPriority(-1)]
public static int LastIndexOfAnyInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
public static int LastIndexOfAnyInRange<T>(this Span<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>;
[<System.Runtime.CompilerServices.OverloadResolutionPriority(-1)>]
static member LastIndexOfAnyInRange : Span<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> int (requires 'T :> IComparable<'T>)
static member LastIndexOfAnyInRange : Span<'T (requires 'T :> IComparable<'T>)> * 'T * 'T -> int (requires 'T :> IComparable<'T>)
<Extension()>
Public Function LastIndexOfAnyInRange(Of T As IComparable(Of T)) (span As Span(Of T), lowInclusive As T, highInclusive As T) As Integer
Parâmetros de Tipo Genérico
- T
O tipo de extensão e os valores.
Parâmetros
- span
- Span<T>
O tempo para procurar.
- lowInclusive
- T
O limite inferior, inclusivo, do intervalo para o qual procurar.
- highInclusive
- T
O limite superior, inclusivo, do intervalo para procurar.
Devoluções
O índice no intervalo da última ocorrência de qualquer valor no intervalo especificado. Se todos os valores estiverem fora do intervalo especificado, retorna -1.
- Atributos