ReadOnlySpan<T>.Equality(ReadOnlySpan<T>, ReadOnlySpan<T>) Operador
Definição
Retorna um valor que indica se duas instâncias ReadOnlySpan<T> são iguais.Returns a value that indicates whether two ReadOnlySpan<T> instances are equal.
public:
static bool operator ==(ReadOnlySpan<T> left, ReadOnlySpan<T> right);
public static bool operator == (ReadOnlySpan<T> left, ReadOnlySpan<T> right);
static member ( = ) : ReadOnlySpan<'T> * ReadOnlySpan<'T> -> bool
Public Shared Operator == (left As ReadOnlySpan(Of T), right As ReadOnlySpan(Of T)) As Boolean
Parâmetros
- left
- ReadOnlySpan<T>
O primeiro intervalo a ser comparado.The first span to compare.
- right
- ReadOnlySpan<T>
O segundo intervalo a ser comparado.The second span to compare.
Retornos
true se as duas instâncias de ReadOnlySpan<T> forem iguais; caso contrário, falsetrue if the two ReadOnlySpan<T> instances are equal; otherwise, false
Comentários
Isso testa se duas ReadOnlySpan<T> instâncias apontam para o mesmo local de memória inicial e têm os mesmos Length valores.This tests if two ReadOnlySpan<T> instances point to the same starting memory location, and have the same Length values. Isso não compara o conteúdo de duas ReadOnlySpan<T> instâncias.This does not compare the contents of two ReadOnlySpan<T> instances.