Vector<T>.Equals Método
Definição
Sobrecargas
| Equals(Vector<T>) |
Retorna um valor que indica se essa instância é igual a um vetor especificado.Returns a value that indicates whether this instance is equal to a specified vector. |
| Equals(Object) |
Retorna um valor que indica se essa instância é igual a um objeto especificado.Returns a value that indicates whether this instance is equal to a specified object. |
Equals(Vector<T>)
Retorna um valor que indica se essa instância é igual a um vetor especificado.Returns a value that indicates whether this instance is equal to a specified vector.
public:
virtual bool Equals(System::Numerics::Vector<T> other);
public bool Equals (System.Numerics.Vector<T> other);
override this.Equals : System.Numerics.Vector<'T (requires 'T : struct)> -> bool
Public Function Equals (other As Vector(Of T)) As Boolean
Parâmetros
- other
- Vector<T>
O vetor a ser comparado com essa instância.The vector to compare with this instance.
Retornos
true se a instância atual e other forem iguais; caso contrário, false.true if the current instance and other are equal; otherwise, false.
Implementações
Exceções
.NET 5.0 e posteriores: não há suporte para o tipo T..NET 5.0 and later: Type T is not supported.
Comentários
Dois vetores são iguais se forem do mesmo tipo, têm o mesmo número de valores, e cada valor na instância atual é igual ao valor correspondente em other .Two vectors are equal if they are of the same type, have the same number of values, and each value in the current instance is equal to the corresponding value in other.
Aplica-se a
Equals(Object)
Retorna um valor que indica se essa instância é igual a um objeto especificado.Returns a value that indicates whether this instance is equal to a specified object.
public:
override bool Equals(System::Object ^ obj);
public override bool Equals (object obj);
public override bool Equals (object? obj);
override this.Equals : obj -> bool
Public Overrides Function Equals (obj As Object) As Boolean
Parâmetros
- obj
- Object
O objeto a ser comparado com essa instância.The object to compare with this instance.
Retornos
true se a instância atual e obj forem iguais; caso contrário, false.true if the current instance and obj are equal; otherwise, false. O método retornará false se obj for nulo ou se obj for um vetor de um tipo diferente da instância atual.The method returns false if obj is null, or if obj is a vector of a different type than the current instance.
Exceções
.NET 5.0 e posteriores: não há suporte para o tipo T..NET 5.0 and later: Type T is not supported.
Comentários
Dois vetores são iguais se forem do mesmo tipo, têm o mesmo número de valores, e cada valor na instância atual é igual ao valor correspondente em other .Two vectors are equal if they are of the same type, have the same number of values, and each value in the current instance is equal to the corresponding value in other.