rover2341
Is riding a roller coaster...Wee!
- Reaction score
- 114
So I have a interface that a bunch of classes use. now that's all good but...
I am need of a function, that will return a list of instances, of those classes. (C#, .Net)
Example:
I am need of a function, that will return a list of instances, of those classes. (C#, .Net)
Example:
Code:
Interface MyInterface
bool Run() - Fuction
Class A : MyInterface
bool Run()
Class B : MyInterface
bool Run()
(These Work Fine)
Some Function:
List<Only Classes that use MyInterface > myList
myList.Add(New A());
myList.Add(New B());
return myList;
(Cant Figure out this line List<Only Classes that use MyInterface > myList)