Before I get started, I personally am a fan of using #regions in my code. I think it cleans up everything, allowing me to only see what I want to see. I also know that many of you disagree with me, and that is fine.
Here are 2 posts that voice their disapproval for regions if you are interested.
As much of a fan as i am of them, sometimes they are just waste. Today i came across a code file that was had the following regions. (I have changed the actual region tags to protect the innocent:)
#region Custom Methods
#region private bool MethodThatDoesSomething
private bool MethodThatDoesSomething(){}
#endregion
#region private void AnotherMethodThatDoesSomething
private void AnotherMethodThatDoesSomething(){}
#endregion
#endregion
By putting the private methods inside it OWN region region the author has accomplished NOTHING, except making my hunt even further for the code i need to modify. This was just total waste.
If you are like me and like regions, my guess is that it is because you believe that it better organize your code. But you must know when enough is enough. Please don't put individual methods inside a region that is meant to ONLY hold that method.
Till next time,