I have two classes:
public class Article : IPosition
public class AssemblyGroup : IPosition
I have a List<IPosition> positions
where I have items from both classes as ItemsSource for my view.
Now I want to retreive the different objects like
var articlePositions = positions.Where(all Article objects)
var assemblyGroupPositions = positions.Where(all AssemblyGroup objects)
Is there any other way other than a foreach loop and adding every item of the list to another list?
Thank you.