Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Region and endregion
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Region and endregion
Divers
Thread ID:
00912277
Message ID:
00912277
Vues:
52
I just found this goody today, did any body else know this???

you can use
#region
#endregion

to block code to be used in the outlining...

i.e.

#region All_Click_Events
#Endregion

so i can minimize the code for the clicks if i am done working with the click events.

then i can make another
#region Common Button Calls
#enregion

ALSO works for the Variable decalrations
#region Variables and Declarations

private System.Windows.Forms.TabPage pgEdit;
private Clients oClients;
private DataSet dsClients;

#endregion

this trims down to one line when collapsed - called Variables and Declarations


A GREAT way to organize code!!!
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform