Maybe a stupid question but when I have an abstract generic class, say A<T>
, and I want to build a dictionary with the abstract class as value and some other type as key in a completely different class. How do I do that without specifying the type?
Dictionary<int, A<T>> dictionary
doesn't compile of course.