A linq query against two objects with same property names
Posted on 2014-02-06
I have two generic lists of objects. Each object type contains a Name, Url and Percent property.
Do I have any real need to create an abstract class (or interface) which will contain those three properties?
I need to join the two lists, sort them, and return those three properties from the Top 4 objects returned.
Can I do all this without creating an abstract class or interface containing those three properties?