StyleCop SA1124 DoNotUseRegions is reasonable?
Posted
by Yanhua
on Stack Overflow
See other posts from Stack Overflow
or by Yanhua
Published on 2010-03-12T02:48:50Z
Indexed on
2010/03/12
2:57 UTC
Read the original article
Hit count: 524
SA1124 DoNotUseRegions suggest that region should not be used anywhere. Is it really reasonable?
I think region is a way to group relative code together and make large class easy to read, for example, if you generate interface method in for class, a region will be automatically inserted by visual studio.
I would like to remove this rule while checking code style. May I know your ideal on this rule?
© Stack Overflow or respective owner