Nested generics <T1 <T2>>
Why is it impossible to write something like this:
T1<T2> Method<T1, T2>(T1<T2> genericValue) { ... }
For example, I want to write an extension method that accepts a shared object containing shared code:
Container<CT<T>> ExtensionMethod<CT, T>(Container<CT<T>> value) { ... }
where CT can be an array, list, or any other type of collection, and T any type. But the compiler says: "T1 parameter type has no type parameters."
Is there any workaround for this?
+4