Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The Region section
Message
Information générale
Forum:
ASP.NET
Catégorie:
Visual Studio
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01373351
Message ID:
01373592
Vues:
17
>>>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.

No, I actually meant they wrapped every single method in a region. Wrapping all of the methods in a region I get.
-Paul

RCS Solutions, Inc.
Blog
Twitter
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform