Any .NET '#region directive' convention ideas ?

Posted by PaN1C_Showt1Me on Stack Overflow See other posts from Stack Overflow or by PaN1C_Showt1Me
Published on 2010-04-06T08:10:24Z Indexed on 2010/04/06 8:13 UTC
Read the original article Hit count: 164

Filed under:
|
|
|
|

I really appreciate the possibility to define regions in your code, as it improves the readability insanely.

Anyways, I'd like to have everyone using the same convention in all classes (with the predefined order of all regions) like:

  • Private Fields
  • Constructors
  • Class Properties
  • Event Handlers
  • etc...

Do you have any proposition how this division could look like (What regions have sense and what names should they have) and in which order should they be defined ?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about c#