The struct, record or union type '{0}' implements the interface 'System.IEquatable ' explicitly. Apply the 'CustomEquality' ...

The struct, record or union type '{0}' implements the interface 'System.IEquatable<_>' explicitly. Apply the 'CustomEquality' attribute to the type and provide a consistent implementation of the non-generic override 'System.Object.Equals(obj)'.