DEV Community

Discussion on: The Great C# Regions Debate

Collapse
 
netferret profile image
netferret

I think its quite simple, if you need to hide blocks of code like this then your class is clearly too large. You need to use Separation of Concern and split it out accordingly.

Hiding properties, constructors etc is just silly as you need to need to see them as developer or how can you analyse the code and do your job?

I personally hate the use of these regions, its a faff, hides code, make its look nicer for the person who wrote it, but its not the person who is going to do the development on the code going forward its a hassle. At least with methods you can press CTRL+M CTRL+O to collapse all.