Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
Hi guys,
how can I remove "#region" in this prog? & when I remove this,what's replace instead of region?
please HELP ME.
Posted
Updated 4-Jun-11 17:55pm
v2

remove both this lines and build in your program

#region name
#endregion


#region[^]
 
Share this answer
 
Comments
Kim Togo 4-Jun-11 2:06am    
As simple as that. My 5.
ambarishtv 4-Jun-11 2:52am    
thank you :)
samihastam 4-Jun-11 2:14am    
tnx.it works good.
Espen Harlinn 5-Jun-11 5:36am    
Right, my 5
ambarishtv 5-Jun-11 7:13am    
thank you :)
#region are code constructs that help you write cleaner more readable code.
My recommendation would be to NOT remove this and infact try and use them more in your code.

There is no direct substitute for the #region #endregion directive.
 
Share this answer
 
Comments
Espen Harlinn 5-Jun-11 5:37am    
Good point, my 5
Abhinav S 5-Jun-11 5:58am    
Thank you Espen.
Sergey Alexandrovich Kryukov 5-Jun-11 12:35pm    
Not removing it good idea, my 5. Better to say -- structure text using this feature accurately.
--SA
Abhinav S 5-Jun-11 12:50pm    
Thank you.
Why not simply look at language reference?
You should understand that #region directive does not effect code at all; it's uses mostly for text outlining in code editor. The only syntactic requirement is proper balancing #region and #endregion.

—SA
 
Share this answer
 
Comments
Espen Harlinn 5-Jun-11 5:37am    
Another good point, my 5
Sergey Alexandrovich Kryukov 5-Jun-11 12:34pm    
Thank you, Espen.
--SA
Abhinav S 5-Jun-11 5:57am    
My 5 SA. This is a good answer.
Please see my answer as well.
Sergey Alexandrovich Kryukov 5-Jun-11 12:34pm    
Thank you, Abhinav.
--SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900