#region around implemented interfaces and code smell

April 18, 2008 – 6:48 am

Some (not so) random surfing got me to this…

How to get rid of the auto-generated #region for implemented interfaces - Daniel Cazzulino’s Blog

There’s a setting in VS that allows you to turn off the #region generation when using VS’s implement interface feature (ALT-SHIFT-F10). 99% of the time I don’t want a region so now I don’t have to clean up the inserted code.

Hum… Maybe regions are code smell? A region smells like “my code is big and complicated” maybe it should be refactored into separate classes?

Technorati Tags:
Share on:
  • Digg
  • description
  • del.icio.us
  • TwitThis
  • Live
  • Google

Post a Comment

*
To prove you're a person (not a spam script), type the security word shown in the picture. Click on the picture to hear an audio file of the word.
Click to hear an audio file of the anti-spam word