# Vector<T>.Equality(Vector<T>, Vector<T>) Operator

## Definition

Important

Some information relates to prerelease product that may be substantially modified before itâ€™s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Returns a value that indicates whether each pair of elements in two specified vectors are equal.

```
public:
static bool operator ==(System::Numerics::Vector<T> left, System::Numerics::Vector<T> right);
```

`public static bool operator == (System.Numerics.Vector<T> left, System.Numerics.Vector<T> right);`

`static member ( = ) : System.Numerics.Vector<'T (requires 'T : struct)> * System.Numerics.Vector<'T (requires 'T : struct)> -> bool`

`Public Shared Operator == (left As Vector(Of T), right As Vector(Of T)) As Boolean`

#### Parameters

- left
- Vector<T>

The first vector to compare.

- right
- Vector<T>

The second vector to compare.

#### Returns

`true`

if `left`

and `right`

are equal; otherwise, `false`

.

#### Exceptions

.NET 5.0 and later: Type `T`

is not supported.

## Remarks

Two vectors are equal if they are of the same type, have the same number of values, and each value in `left`

is equal to the corresponding value in `right`

.