How to inherit from a generic parameter?
- by Bob
I'm basically wanting to do this:
class UILockable<T> : T
where T : UIWidget
{
}
However, this doesn't work. I've seen people recommend that you do this:
class UILockable<T>
where T : UIWidget
{
private T _base;
}
This would require me to override each function UILockable would need and forward it to T. This is…