I'm fairly new programing and I had a question.
List A is filled with elements of List B, and I want to create a List C with the missing elements from it, using a variable (that is an int
) as a comparison point.
List A is stored on a Session Variable List B is taken from my database this way:
IEnumerable<ListB> Listb = db.ListB;
List<ListB> Listb = db.ListB.ToList();
I tried this solution (Use LINQ to get items in one List<>, that are not in another List<>), but it didn't work for me, or more probably, I couldn't understand it enough to make it work.