Nov 25, 2011 at 1:49 PM

It is good that there is a rule avoiding #region abuse! But in my opinion there is one exception where a #region/#endregion makes sense: When implementing Interfaces.


    #region Implementation of IDisposable
    public void Dispose()
      // implementation here ...
Would be cool to have an StyleCop+ extension for that?

--Harald-René Flasch (aka hfrmobile)

Dec 9, 2011 at 8:45 PM


Should it check region name and allow ones falling into some pattern? (like starting with "Implementation of" in your example)?

Could you please also create an issue for that?

Now I kind of busy and can't give to StyleCop+ as much time as I wanted.
But I hope all willings could be implemented somewhen!

Best regards,
Oleg Shuruev

Dec 9, 2011 at 11:23 PM

Issue created at

Yes, I think "#region Implementation of ????" pattern would do the trick.

No problem, I'll try to be patient ;-) Keep up the excellent work!

Best regards,
Harald-René Flasch (aka hfrmobile)