S
Steve Richter
trying to understand how to support templates in server controls ...
a few quick questions on the following snippet of code pulled from a
server control class:
ITemplate _headingStyle;
[TemplateContainer(typeof(ICollectionLister2))]
public ITemplate HeadingStyle
{
get{ return _headingStyle; }
set{ _headingStyle = value; }
}
I thought ITemplate was an interface. How is it being used here as a
class?
What does the "[TemplateContainer(typeof(ICollectionLister2))]" stmt
line do when it proceeds the property "HeadingStyle"?
thanks,
-Steve
a few quick questions on the following snippet of code pulled from a
server control class:
ITemplate _headingStyle;
[TemplateContainer(typeof(ICollectionLister2))]
public ITemplate HeadingStyle
{
get{ return _headingStyle; }
set{ _headingStyle = value; }
}
I thought ITemplate was an interface. How is it being used here as a
class?
What does the "[TemplateContainer(typeof(ICollectionLister2))]" stmt
line do when it proceeds the property "HeadingStyle"?
thanks,
-Steve