In Java, it is possible to bind the type parameter of a generic type. It can be done like this:
class A<T extends B> {
...
}
So, the type parameter for this generic class of A should be B or a subclass of B.
I wonder if C# has a similar feature. I appreciate if somebody let me know.
Thanks
class A<T> where T : B {...}
I think. It's been awhile. – Fourdimensional