El tipo de struct, registro o unión '{0}' no admite igualdad estructural porque el tipo '{1}' no satisface la restricción ...

El tipo de struct, registro o unión '{0}' no admite igualdad estructural porque el tipo '{1}' no satisface la restricción 'equality'. Considere agregar el atributo 'NoEquality' al tipo '{2}' para indicar que el tipo no admite igualdad estructural.