Hmm...this is a constant
quandary for me, when to use and when not to use the #region...#endregion tags(?) in code. Currently I tend to use them to hide pointless stuff like ASP.NET control declarations and generally increase redability in long chunks of code (so, parcel up my events, constructors etc...in regions) - but I in no way always do this. Now, a colleague of mine uses this stuff religiously, every class has
- Declarations
- Lifecycle
- General
- Methods
- Properties
; with all the bits all hidden away when you open the file (which incidentally drives me nuts - I'm a code-speed reader and it breaks the flow :-)). So here's a question, when do you use regions and where...and more importantly, anyone know a way to make regions expanded by default???