stoopid question time again.
I have this class that pulls in some code via a base class like so:
class TVIRoot : OURTreeNodeImpl { }
I now want to add some template functionality
class TVIRoot<TLabelHandler> : OURTreeNodeImpl { }
But I can't work out what sort of finger mangling I need to get it to compile when I need to supply some constraints.
class TVIRoot<TLabelHandler> where TLabelHandler : new(), OURTreeNodeImpl { } //no
class TVIRoot<TLabelHandler> where TLabelHandler : SomeClass : OURTreeNodeImpl { } //no
class TVIRoot<TLabelHandler> : OURTreeNodeImpl, where TLabelHandler : SomeClass { } //no
Can this be done?
Many thanks.
bg