I`m using LINQ to retrieve some objects based on some property. Everything works great. I was wondering if there was a different way of doing it. Lets say in C# code.
What would be my algorithm be? Do I have to go through each element individually, check the property? Basically I want to look for a property and then order them according to a different property.
In the example, I get a sublist based on Tag, order it by Time.
Here is what I`m doing in LINQ. Code examples would be really helpful.
SubList = (from Obj in MainList
where Obj.IDTag == Tag