Tuesday, 4 May 2010

Your Class Regions

According to StyleCop, the order of class members should as below:
  1. Fields
  2. Constructors
  3. Events
  4. Enums
  5. Properties
  6. Methods
  • A class doesn't have to have all these regions, only those which are required.
  • You can use Ctrl+K+S to add a region snippet quickly.

No comments: