Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Regions in code
Message
De
19/03/2008 13:00:41
 
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01303445
Message ID:
01303471
Vues:
15
This message has been marked as a message which has helped to the initial question of the thread.
>Hi everybody,
>
>In the sample project I downloade and unable to run I see that sections are organized by regions. I'm wondering is it something VS inserts automatically (if yes, how) or it's VS2008 feature?
>
>I don't think I saw them in the projects I'm working on except for auto-generated code.
>
>Thanks a lot in advance.

Nadya,

Regions start with
#region  SomeName
and are terminated by
#endregion
This enables the developer to expand/collapse a region like you are able to expand/collapse every class, method

Some people have a region for the methods and one for the properties

something like
public class human
{
#region attributes
    public string name;
    public string firstname;
    public Int32 age;
#endregion

 ... etc

}
____
Update: regions can be nested
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform