concept equality in category c#

This is an excerpt from Manning's book Code like a Pro in C#.
You see, Grutte Pier was testing whether somebody was a Frisian. Was Pier testing if person A was equal (in the sense of identical properties, not social equality) to person B? No. Person A may have blond hair, while person B may not. He tested for congruence between Person A and the Frisian people. If you could say his shibboleth, he deemed you congruent to a Frisian and therefore got to live. And you said congruence never saved somebody’s life! If we use mathematical set notation and state that a set A is equal to {bûter,brea,grieneTsiis} and set B equals {aachje ···zeppelin} representing all Frisian words in somebody’s vocabulary, we can say: {x |x ∈ A ⋀x ∈ B}⇔frisian.

This is an excerpt from Manning's book C# in Depth.
There are four main generic interfaces for comparisons. Two of them—IComparer<T> and IComparable<T>—are about comparing values for ordering (is one value less than, equal to, or greater than the other?), and the other two—IEqualityComparer<T> and IEquatable<T>—are for comparing two items for equality according to some criteria and for finding the hash of an item (in a manner compatible with the same notion of equality).
3 The equality and relational operators are also binary operators, but they behave slightly differently than the others; hence their separation in this list.
The rules are mostly consistent with the rules of equality elsewhere in .NET, so you can use nullable instances as keys for dictionaries and any other situations where you need equality. Just don’t expect equality to differentiate between a non-nullable instance and a nullable instance with a value—it’s been carefully set up so that those two cases are treated the same way as each other.