Supposedly C# structs have some performance benefits over classes for lightweight data objects because they're stored entirely on the stack instead of allocating heap memory.
If one of the members of that struct is an int[] or an array of structs, what effect does that have on allocation and any other performance benefits I might get out of it?
Example:
struct A { int foo; int bar; } struct B { int[] foos; A[] bars; } How would struct A differ from struct B in performance, memory usage, etc?