I have 2 Lists, one is a class, the other is integers. I am trying to return all ParentID values that exist in one of the Lists Taxonomy property, but not having any success in generating this.
For example:
List<int> theListingCatIDs = new List<int>();
theListingCatIDs = allMemberListings.Select(u => u.Taxonomy.ConvertAll<int>(v => v.ParentID)).Distinct().ToList();
This gives me error saying that it can not convert List<List<int>> to List<int>, But how can I flatten the results to just put them all in a List<int>??