Immutability of structs
Posted
by Joan Venge
on Stack Overflow
See other posts from Stack Overflow
or by Joan Venge
Published on 2009-03-03T22:42:02Z
Indexed on
2010/03/08
13:06 UTC
Read the original article
Hit count: 373
I read it in lots of places including here that it's better to make structs as immutable.
What's the reason behind this? I see lots of Microsoft-created structs that are mutable, like the ones in xna. Probably there are many more in the BCL.
What are the pros and cons of not following this guideline?
© Stack Overflow or respective owner