473,385 Members | 1,317 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

#region, #endregion ??

What is the meaning of

#region
#endregion
May 5 '06 #1
2 7011
This is used for grouping, organizing your code.
I group a method and related methods under a region and so on

you can collapse these regions and that way you can see a nice outline of
your code

You can collapse methods etc... but by grouping in regions you can collapse
even more.

SA
"keithb" <kb******@dslextreme.com> wrote in message
news:uy**************@TK2MSFTNGP02.phx.gbl...
What is the meaning of

#region
#endregion

May 5 '06 #2
It's a hint to the IDE (ie, visual studio, Web Developer Express)...about
how to display code. It's stripped out of your compiled code...as the above
poster said, it merely helps organize it.

Karl

--
http://www.openmymind.net/

"MSDN" <sq**********@hotmail.com> wrote in message
news:uM**************@TK2MSFTNGP05.phx.gbl...
This is used for grouping, organizing your code.
I group a method and related methods under a region and so on

you can collapse these regions and that way you can see a nice outline of
your code

You can collapse methods etc... but by grouping in regions you can
collapse even more.

SA
"keithb" <kb******@dslextreme.com> wrote in message
news:uy**************@TK2MSFTNGP02.phx.gbl...
What is the meaning of

#region
#endregion


May 5 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Altramagnus | last post by:
I have a complicated Region object, which I need to draw the outline, but not fill How can I convert the Region object to GraphicsPath object? or How can I draw the outline of the Region object?
1
by: AndreB | last post by:
Hello, I think it would be so useful to be able to expand or collapse the "#endregion" in the same way it is possible with "-" and "+" in front of "#region". It will be easy to shorten a region...
6
by: John | last post by:
I have two books saying different things about the #region directive. One says that all code within #region does not affect the compilation process in any way, while the other states that the...
7
by: Osvaldo Bisignano | last post by:
I want to generate #region #endregion statements through codedom.
12
by: clintonG | last post by:
VS2005 2.0 Beta 2 noting I've posted (to no avail so far) to the somewhat deadzone at news://microsoft.public.vsnet.ide and am getting ants in my pants for some discussion about this issue. ...
7
by: Russell Mangel | last post by:
I was thinking about what IDE feature I would want the most in the next version of VC++? I would definately ask for the C# feature: #region / #endregion. In my opinion this feature was a...
4
by: Lonewolf | last post by:
Hi in C#, it is possible to define a region which can be tucked away in the IDE by defining a #region and #endregion pair in the code. I realize this does not seem to work for C++/CLI, be it...
2
by: =?Utf-8?B?U2VlU2hhcnA=?= | last post by:
It seems I cannot use #region and #endregion to hide those auto generated windows form control declarations. They are available in VC# 2003 though. Is it true that VC 2003 doesn't support #region...
4
by: Tony Johansson | last post by:
Hello! Below I have manually added the two statement #region Using directives and #endregion. I wonder if this possible to have the Visual studio 2005 to generate these two statement for those...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.