what is region and why use region in.net [Resolved]

Posted by Rajesh081725 under C# on 1/29/2013 | Points: 10 | Views : 1011 | Status : [Member] | Replies : 3
Can u any one reply

What is region
why use region
what is main purpose of region
is region is need mean which situation used region in .net

Time is Gold
Thanks & Regards,
Rajesh Kumar,
9962038582.



Responses

Posted by: Sarithapraveen on: 1/29/2013 [Member] Starter | Points: 50

Up
0
Down

Resolved
Regions are used to separate methods,functions etc. This increases the readability & maintenance of code and we can easily isolate them.
For Eg:

#region "Methods"
//Write methods that we are using here
#end region "Methods"

like this we can isolate functions,events etc



Rajesh081725, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Peermohamedmydeen on: 1/29/2013 [Member] Bronze | Points: 25

Up
0
Down
Regions are used to provide a better visibility on code.
By using regions it is easy to understand and isolate the code blocks and easy to maintain the code.

Regards
Mydeen



Rajesh081725, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Rajesh081725 on: 1/29/2013 [Member] Bronze | Points: 25

Up
0
Down
Hi Prrtmohamed,

Where Region is used in .net?

can u give some example and explain

Time is Gold
Thanks & Regards,
Rajesh Kumar,
9962038582.

Rajesh081725, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response