Skip to main content

All Questions

Filter by
Sorted by
Tagged with
9 votes
2 answers
5k views

Overriding GetHashCode in a mutable struct - What NOT to do?

I am using the XNA Framework to make a learning project. It has a Point struct which exposes an X and Y value; for the purpose of optimization, it breaks the rules for proper struct design, since its ...
Kyle Baran's user avatar