C# has a nice preprocessor directive called #region. In principle it is very cool, but it is like so many cool ideas - HORRIBLY broken.
The idea behind the directive is to allow you (or the IDE) to mark a block of code for hiding in the IDE. So if I have:
#region Private members
private void SomeMethod() {
int i;
...
}
#endregion
The editor will then allow me to use cold folding on that block and thus collapse it to:
Recent comments