"java wildcard" in C #?
There is a similar C # generic question "where is the constraint" with "any generic type" definition? does not apply to Java templates. The answer provided there will most likely help you.
From this answer, a possible class signature would be:
public abstract class AAA<T, TOther> : CCC<T>
where T : BBB<TOther>
{}
Generics in C # must have named type parameters, even if you never plan on using that type explicitly / implicitly. And all type parameters must be named in the method / class / interface identifier declaration.
Note that it would be possible to restrict TOther to objects only if desired, using:
public abstract class AAA<T, TOther> : CCC<T>
where T : BBB<TOther>
where TOther : object
{}
source to share