concept operator overload in category c#

appears as: Operator overloads, operator overload
Code like a Pro in C#

This is an excerpt from Manning's book Code like a Pro in C#.

We overrode and implemented the GetHashCode method, so now it is time to do the same for the Equals method. Before we do that, let’s settle on what things need to be equal to say that Customer instance X is “equal” to Customer Instance Y? The Customer class does not have a lot of properties to check for: only CustomerId and Name are usable. The Booking field is a collection representing any foreign key constraints on the Customer model. But, for our congruence check, those are not very relevant, so we don’t use the collection in our check. If Customer X has the same Name and CustomerId property values as Customer Y, they are equal (and so, we return a bool set to true out of the Equals method).