title: What's the best way to layout a C# class?
body: <p>Is there a standard way of laying out a C# file? As in, Fields, then Properties, then Constructors, etc?</p>
  
  <p>Here's what I normally do, but I'm wondering if there's a standard way? </p>
  
  <ol>
  <li>Nested Classes or Enums</li>
  <li>Fields</li>
  <li>Properties</li>
  <li>Events</li>
  <li>Constructors</li>
  <li>Public Methods</li>
  <li>Private Methods</li>
  </ol>
  
  <p>Do people group their fields together, or do they put them with the properties? Or do people not worry about an order? Visual Studio seems to make it so hard to do. </p>
  
  <p><strong>Edit</strong>: Moved other part about ReSharper here: <a href="https://stackoverflow.com/questions/603805/make-resharper-respect-your-preference-for-code-order">Make Resharper respect your preference for code order.</a></p>