MemoryExtensions.SequenceEqual Método

Definición

Sobrecargas

SequenceEqual<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Determina si dos secuencias de solo lectura son iguales comparando los elementos mediante IEquatable{T}.Equals(T).Determines whether two read-only sequences are equal by comparing the elements using IEquatable{T}.Equals(T).

SequenceEqual<T>(Span<T>, ReadOnlySpan<T>)

Determina si un intervalo y un intervalo de solo lectura son iguales comparando los elementos mediante IEquatable{T}.Equals(T).Determines whether a span and a read-only span are equal by comparing the elements using IEquatable{T}.Equals(T).

SequenceEqual<T>(ReadOnlySpan<T>, ReadOnlySpan<T>)

Determina si dos secuencias de solo lectura son iguales comparando los elementos mediante IEquatable{T}.Equals(T).Determines whether two read-only sequences are equal by comparing the elements using IEquatable{T}.Equals(T).

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool SequenceEqual(ReadOnlySpan<T> span, ReadOnlySpan<T> other);
public static bool SequenceEqual<T> (this ReadOnlySpan<T>? span, ReadOnlySpan<T>? other) where T : IEquatable<T>;
public static bool SequenceEqual<T> (this ReadOnlySpan<T> span, ReadOnlySpan<T> other) where T : IEquatable<T>;
static member SequenceEqual : ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function SequenceEqual(Of T As IEquatable(Of T)) (span As ReadOnlySpan(Of T), other As ReadOnlySpan(Of T)) As Boolean

Parámetros de tipo

T

Tipo de los elementos de la secuencia.The type of elements in the sequence.

Parámetros

span
ReadOnlySpan<T>

Primera secuencia que se va a comparar.The first sequence to compare.

other
ReadOnlySpan<T>

Segunda secuencia que se va a comparar.The second sequence to compare.

Devoluciones

Boolean

true si las dos secuencias son iguales; de lo contrario, false.true if the two sequences are equal; otherwise, false.

SequenceEqual<T>(Span<T>, ReadOnlySpan<T>)

Determina si un intervalo y un intervalo de solo lectura son iguales comparando los elementos mediante IEquatable{T}.Equals(T).Determines whether a span and a read-only span are equal by comparing the elements using IEquatable{T}.Equals(T).

public:
generic <typename T>
 where T : IEquatable<T>[System::Runtime::CompilerServices::Extension]
 static bool SequenceEqual(Span<T> span, ReadOnlySpan<T> other);
public static bool SequenceEqual<T> (this Span<T>? span, ReadOnlySpan<T>? other) where T : IEquatable<T>;
public static bool SequenceEqual<T> (this Span<T> span, ReadOnlySpan<T> other) where T : IEquatable<T>;
static member SequenceEqual : Span<'T (requires 'T :> IEquatable<'T>)> * ReadOnlySpan<'T (requires 'T :> IEquatable<'T>)> -> bool (requires 'T :> IEquatable<'T>)
<Extension()>
Public Function SequenceEqual(Of T As IEquatable(Of T)) (span As Span(Of T), other As ReadOnlySpan(Of T)) As Boolean

Parámetros de tipo

T

Tipo de los elementos de la secuencia.The type of elements in the sequence.

Parámetros

span
Span<T>

Intervalo que se va a comparar.The span to compare.

other
ReadOnlySpan<T>

Intervalo de solo lectura que se va a comparar.The read-only span to compare.

Devoluciones

Boolean

true si las dos secuencias son iguales; de lo contrario, false.true if the two sequences are equal; otherwise, false.

Se aplica a