title: if GetFields() doesn't guarantee order, how does LayoutKind.Sequential work
body: <p>I need to get fieldinfo in a guaranteed order with respect to declaration order. Right now I'm using attributes to specify order.</p>
  
  <p>Is there a more automatic way of doing this?</p>
  
  <p>Does anyone have knowledge of how <code>LayoutKind.Sequential</code> works, and if I can apply its technique.</p>
  
  <p>I don't see how <code>LayoutKind.Sequential</code> works, unless there's some precompiler code that adds attributes.</p>