What is the best way to compare objects of value type N? So I want to do a String, Integer, DateTime, etc comparison depending on the type of the object.
IEqualityComparer<T>
Where T is the type you want to compare.
IEqualityComparer(T) Interface (System.Collections.Generic)
...you could also fall back on Object.Equals()
and ValueType.Equals()
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With