2

Possible Duplicates:
When to use struct in C#?
When should I use a struct instead of a class?

What would be some instances when one would want to use Structs in C#?

Is it when you want a lightweight, immutable class? How will the stack vs heap allocation effect me and what should I be aware of? Are there any other instances of when it would make sense to use structs?

Community
  • 1
  • 1
KingNestor
  • 65,976
  • 51
  • 121
  • 152

0 Answers0