Avoid Regions for Interfaces in Visual Studio
Date Published: 22 February 2010
Another quick tip related to the use of regions in your C# code – you can turn off the default behavior of wrapping interface implementations in regions via the options dialog. Simply go to Tools –> Options –> Text Editor –> C# –> Advanced as shown in the screenshot below, and uncheck the “Surround generated code with #region” checkbox.
Steve is an experienced software architect and trainer, focusing on code quality and Domain-Driven Design with .NET.