How to use a class's type as the type argument for an inherited collection property in C#
- by Edelweiss Peimann
I am trying to create a representation of various types of card that inherit from a generic card class and which all contain references to their owning decks.
I tried re-declaring them, as suggested here, but it still won't convert to the specific card type.
The code I currently have is as such:
public class Deck<T> : List<T>
…