If I have a generic base class
class Base<T> { }
and I derive from it
class Derived : Base<SomeReallyLongConcreteTypeName>
{
// Can I use the type name T here rather than SomeReallyLongConcreteTypeName
}
is it possible to use the base type generic type parameter name in the body of the derived class? In C++ I can add
using X = T;
into the base type and use X in the derived class but I don't think type aliases can do this in C# so is there another way?