value equality

Treating two objects as equal when their members hold equal values, even if they are separate objects.

In more detail

Records get value equality generated for them. A class gets it only if you override Equals and GetHashCode, and even then == still compares references unless you also define the operator.

Related terms

Taught in

References