#region lets you specify a block of code that you can expand or collapse when using the outlining feature of the Visual Studio Code Editor. In longer code files, it is convenient to be able to collapse or hide one or more regions so that you can focus on the part of the file that you are currently working on.
public class PieceTheResistence
Ah, i see, i can collapse the region i am not working on, which will keep me focused on the code i am working on.
Could be that i kept up all night, writing some blog posts or playing on my XBOX, PS3. Being deprived of sleep can have negative effects on concentration.
But a much more common scenario is that the class simply has too much code, in other words the class has too many responsibilities.
Create classes from the regions, so you’ll end up with classes with names revealing their intend. IMHO you don’t need regions if you design classes following the Single responsibility principle (SRP)