01.Blogs :
RobMiles  
Programming, gadgets and life as a lecturer in a UK university.

Fun With Folds

I've finished marking and now, as a form of relaxation, I'm writing some code. Lovely.

I've stated making proper use of regions in C#. These are really neat. They let you take a block of code and fold it in the editor. They don't add anything to your program as it runs, but they are very useful in managing the code that you write. You can do things like:

#region Name property
// stuff to do with the name property here
#endregion

Then you get can fold the code in between the regions into a single line or open it up to view the contents. You can even nest them so that you can create outlines which contain your code.

posted on Tuesday, May 24, 2005 8:40 AM by RobMiles


 
03.UPDATE CALENDAR :
<May 2005>
SunMonTueWedThuFriSat
24252627282930
1234567
891011121314
15161718192021
22232425262728
2930311234

05.MY LINKS :

07.Subscriptions :

Subscriptions


© Copyright 2005 Microsoft Corporation. All Rights Reserved.
Terms of Use | Privacy Statement | Code of Conduct | Hosted by MaximumASP for Microsoft
WHO-BAR