Now, this is interesting, because I tend to use #region more to HIDE THE CRAP (XML documentation etc, long list of attributes etc.) making it easier to see the important code…
I do tend to roll up the properties as well. Since 99% of the time the getters/setters aren’t really doing much in themselves.
e.g.
#region Attributes
[Browsable(false)]
[MergableProperty(false)]
[DefaultValue(null)]
[PersistenceMode(PersistenceMode.InnerProperty)]
[TemplateContainer(typeof(MyType))]
[TemplateInstance(TemplateInstance.Single)]
#endregion
public ITemplate ContentTemplate
{
get { return _temp; }
set { _temp = value; }
}
Becomes:
Attributes
public ITemplate ContentTemplate
{
get { return _temp; }
set { _temp = value; }
}
Much nicer 