title: Is it ok to have a class inside a struct?
body: <p>In C# a struct is stored on the stack and a class is stored on the heap. Imagine if I have a struct that has a huge class in it. How will this work? Does the struct only contain a pointer to the class, no matter the size of the class? Or will the size of the class also affect the size of the struct?</p>
  
  <p>If the former is true, then I guess it would be ok to have a class inside a struct. If the latter is true, then I think I should avoid do it.</p>