When I implement objects that I want to compare using the IEquatable<T>
interface:
- Why do I have to override
Equals(object)
method if I already implemented Equals(T)
?
- Can I use
==
and !=
operators once I implement IEquatable<T>
?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…