# MemoryExtensions.SequenceCompareToMemoryExtensions.SequenceCompareToMemoryExtensions.SequenceCompareToMemoryExtensions.SequenceCompareTo Method

## Sobrecargas

 SequenceCompareTo(ReadOnlySpan, ReadOnlySpan) SequenceCompareTo(ReadOnlySpan, ReadOnlySpan) SequenceCompareTo(ReadOnlySpan, ReadOnlySpan) SequenceCompareTo(ReadOnlySpan, ReadOnlySpan) Determina a ordem relativa de duas sequências somente leitura comparando seus elementos com o uso de IComparable{T}.CompareTo(T).Determines the relative order of two read-only sequences by comparing their elements using IComparable{T}.CompareTo(T). SequenceCompareTo(Span, ReadOnlySpan) SequenceCompareTo(Span, ReadOnlySpan) SequenceCompareTo(Span, ReadOnlySpan) SequenceCompareTo(Span, ReadOnlySpan) Determina a ordem relativa de um intervalo e um intervalo somente leitura comparando os elementos com o uso de IComparable{T}.CompareTo(T).Determines the relative order of a span and a read-only span by comparing the elements using IComparable{T}.CompareTo(T).

## SequenceCompareTo<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)SequenceCompareTo<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)SequenceCompareTo<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)SequenceCompareTo<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Determina a ordem relativa de duas sequências somente leitura comparando seus elementos com o uso de IComparable{T}.CompareTo(T).Determines the relative order of two read-only sequences by comparing their elements using IComparable{T}.CompareTo(T).

``````public:
generic <typename T>
where T : IComparable<T>[System::Runtime::CompilerServices::Extension]
static int SequenceCompareTo(ReadOnlySpan<T> span, ReadOnlySpan<T> other);``````
``public static int SequenceCompareTo<T> (this ReadOnlySpan<T> span, ReadOnlySpan<T> other) where T : IComparable<T>;``
``static member SequenceCompareTo : ReadOnlySpan<'T (requires 'T :> IComparable<'T>)> * ReadOnlySpan<'T (requires 'T :> IComparable<'T>)> -> int (requires 'T :> IComparable<'T>)``
``````<Extension()>
Public Function SequenceCompareTo(Of T As IComparable(Of T)) (span As ReadOnlySpan(Of T), other As ReadOnlySpan(Of T)) As Integer``````

#### Parâmetros de tipo

T

O tipo de elementos na sequência.The type of elements in the sequence.

#### Parâmetros

span
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

A primeira sequência a ser comparada.The first sequence to compare.

other
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

A segunda sequência a ser comparada.The second sequence to compare.

#### Retornos

Um inteiro com sinal que indica a ordem relativa de `span` e `other`:A signed integer that indicates the relative order of `span` and `other`:
– Se for menor que 0, `span` precederá `other`.- If less than 0, `span` precedes than `other`.
- Se for 0, `span` será igual a `other`.- If 0, `span` equals `other`.
– Se for maior que 0, `span` seguirá `other`.- If greater than 0, `span` follows `other`.

## SequenceCompareTo<T>(Span<T>, ReadOnlySpan<T>)SequenceCompareTo<T>(Span<T>, ReadOnlySpan<T>)SequenceCompareTo<T>(Span<T>, ReadOnlySpan<T>)SequenceCompareTo<T>(Span<T>, ReadOnlySpan<T>)

Determina a ordem relativa de um intervalo e um intervalo somente leitura comparando os elementos com o uso de IComparable{T}.CompareTo(T).Determines the relative order of a span and a read-only span by comparing the elements using IComparable{T}.CompareTo(T).

``````public:
generic <typename T>
where T : IComparable<T>[System::Runtime::CompilerServices::Extension]
static int SequenceCompareTo(Span<T> span, ReadOnlySpan<T> other);``````
``public static int SequenceCompareTo<T> (this Span<T> span, ReadOnlySpan<T> other) where T : IComparable<T>;``
``static member SequenceCompareTo : Span<'T (requires 'T :> IComparable<'T>)> * ReadOnlySpan<'T (requires 'T :> IComparable<'T>)> -> int (requires 'T :> IComparable<'T>)``
``````<Extension()>
Public Function SequenceCompareTo(Of T As IComparable(Of T)) (span As Span(Of T), other As ReadOnlySpan(Of T)) As Integer``````

#### Parâmetros de tipo

T

O tipo de elementos no span.The type of elements in the span.

#### Parâmetros

span
Span<T> Span<T> Span<T> Span<T>

O intervalo a ser comparado.The span to compare.

other
ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T> ReadOnlySpan<T>

O intervalo somente leitura a ser comparado.The read-only span to compare.

#### Retornos

Um inteiro com sinal que indica a ordem relativa de `span` e `other`:A signed integer that indicates the relative order of `span` and `other`:
– Se for menor que 0, `span` precederá `other`.- If less than 0, `span` precedes than `other`.
- Se for 0, `span` será igual a `other`.- If 0, `span` equals `other`.
– Se for maior que 0, `span` seguirá `other`.- If greater than 0, `span` follows `other`.