I've got 2 generic lists that do not contain the all fields of the same type
IList<Category> and List<CategoriesRow>Categories
categoryList = IList<Category>
but both have common fields Name and ID.
I want to compare list Categories with categoryList and find from categoryList where categoryList[index].ID does not exist in the list of all Categories of ID. For all those that do not exist in Categories, I will have to remove them from CatgoryList.
I had a previous post in which I was given examples of LINQ, but the problem is I have to use Dynamic, implying that I am passing categoryList and Categories as Dynamic.
Can anyone give me an example how to go about the above as I have no idea how to do it.