>>My general practice is to divide into regions:
>>
>>Properties
>>Methods
>>Event Handlers
>>
>>In the case of the MVP pattern, there will be a region for view members subdivided into Properties and Methods as well.
>>etc
>
>Yeah, I pretty much do the same thing, unless I've only got one or two of them in which case I don't. I've just seen people go nutso with them.
>
>One place where I just don't get adding a region is around entire methods - why? You already have a nice way in the edit to collapse to definitions; what does the region buy you except more typing?
In a class with 30 methods, 40 event handlers, and many props, it is nice to have all the methods within one region to expand/collapse, etc. It also guides other developers who may add a new method or event handler later to put it in the right spot in the class.
.·*´¨)
.·`TCH
(..·*
010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"