Hi
I want to group the above list of stores in this case.
The above is a List(of Stores)
and I want create a new list of stores where they are all grouped by FromStore
and ToStore
.
Example:
Dim Test As List(Of Stores) = MyTStores.GroupBy(Function(x) x.ToStore).[Select](Function(grp) grp.First()).ToList()
This example only group by one columns and not two.