By madskristensen
via madskristensen.dk
Published: Aug 29 2006 / 11:22
It’s a good rule of thumb to overload the equality operators on classes. That ensures a correct comparison between to class instances of the same type. If you don’t, .NET automatically uses reflection and that is way slower than a custom implementation.
Add your comment