G
Guest
I want to have an object with a method that accepts a List of interfaces, for
example:
List<IMyInterface> myInterfaces
Then in another object I have a List of objects which implement that
interface, like:
MyObject : IMyInterface
so the list is List<MyObject>
I cannot figure out how to pass my list of objects to that method that
accepts a list of the interfaces. It keeps saying cannot convert the values...
example:
List<IMyInterface> myInterfaces
Then in another object I have a List of objects which implement that
interface, like:
MyObject : IMyInterface
so the list is List<MyObject>
I cannot figure out how to pass my list of objects to that method that
accepts a list of the interfaces. It keeps saying cannot convert the values...