Member-Wise Equality Without the Boilerplate
Explains how to dynamically generate member-wise Equals() and GetHashCode() methods using reflection and expression trees. With this approach, you avoid having to implement the methods yourself and get superior performance to the reflection-only approach. Continue reading