Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Region and endregion
Message
From
10/06/2004 12:21:39
 
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
00912277
Message ID:
00912293
Views:
12
>>I just found this goody today, did any body else know this???

Gee, Shawn ... I thought *everybody* knew that. <g> Seriously, thanks for pointing it out ... sometimes us seasoned veterans just assume that everyone knows these kinds of things and we never even think to mention it here. I use this constantly throughout my code. Not only is it a great way to organize code, as you mentioned, it's also somewhat self-documenting as well.

~~Bonnie

>
>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!!!
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform