What's the best way to layout a C# class? [duplicate]
问题 This question already has answers here : Order of items in classes: Fields, Properties, Constructors, Methods (15 answers) Closed 6 years ago . Is there a standard way of laying out a C# file? As in, Fields, then Properties, then Constructors, etc? Here's what I normally do, but I'm wondering if there's a standard way? Nested Classes or Enums Fields Properties Events Constructors Public Methods Private Methods Do people group their fields together, or do they put them with the properties? Or