473,549 Members | 2,982 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

#region, #endregion ??

What is the meaning of

#region
#endregion
May 5 '06 #1
2 7019
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******@dslex treme.com> wrote in message
news:uy******** ******@TK2MSFTN GP02.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)...abou t
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**********@h otmail.com> wrote in message
news:uM******** ******@TK2MSFTN GP05.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******@dslex treme.com> wrote in message
news:uy******** ******@TK2MSFTN GP02.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
7584
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
331
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 as we reach its "#endregion" directive. I miss the "-" in front of "#endregion". + MyRegion
6
1916
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 entire region is marked for a pre-processor directive which does affect the compilation process. I was wondering which is accurate? Is...
7
3702
by: Osvaldo Bisignano | last post by:
I want to generate #region #endregion statements through codedom.
12
1342
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. Using regions to manage source code in the IDE is very useful however I prefer to align the region text on the left-most margin of the editor, i.e....
7
3377
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 brilliant idea. This thing really helps to abstract out code, and gives you a view of your code you can not otherwise see. C++ needs this feature even...
4
8682
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 native or managed code. Is there soemthing equivalent in C++/CLI or it's totally not supported yet?
2
2274
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 and #endregion?
4
2690
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 statement that should be included in this section. #region Using directives
0
7518
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7715
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
7808
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6040
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5087
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
1
1935
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1057
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.