Use Equals

Converts an expression with the equality operator to the Equals method call.

Availability

From the context menus or via shortcuts:

  • when an expression with the equality operator is selected.

Example

bool c = a == b;
Dim c As Boolean = a = b

Result:

bool c = a.Equals(b);
Dim c As Boolean = a.Equals(b)