I have some simple code in a class:
private ITemplate _content1 = null;
[TemplateContainer(typeof(ContentContainer))]
public ITemplate Content1
{
get
{ return _content1; }
set
{ _content1 = value; }
}
I need about 15 of these content containers. I could just copy and paste this block 15 times and change the number, but there must be a better way. Can anyone suggest a cleaner way to do this?