In C# I can create a generic list that contains a specific Interface, such as:
myList = List<IMyInterface>;
Can I do the same thing in Delphi XE3, and if so how?
I know I can create a TInterfaceList to store a list of interfaces but it's not strongly typed so I would still need to cast when using objects in the list.
Is there a strongly typed way of doing this?
TList<IMyInterface>
? – Lily