D
David
I have two lists
List<MyClass> firstList = new List<MyClass>();
List<MyClass> secondList = new List<MyClass>();
The class MyClass has several properties (Id, Name, Title)
Both Lists (firstList, secondList) have several items in them.
I would like to know how to use either find,contains or exists
to see if the items in firstList are in secondList but the Id's won't
be the same.
I think I need to use a Predicate but can't seem to figure out
how to pass the values of the item in the firstList into the Predicate
for the secondList.
Basically I need to know if the Name and Title of an item in the
firstList are in the secondList.
List<MyClass> firstList = new List<MyClass>();
List<MyClass> secondList = new List<MyClass>();
The class MyClass has several properties (Id, Name, Title)
Both Lists (firstList, secondList) have several items in them.
I would like to know how to use either find,contains or exists
to see if the items in firstList are in secondList but the Id's won't
be the same.
I think I need to use a Predicate but can't seem to figure out
how to pass the values of the item in the firstList into the Predicate
for the secondList.
Basically I need to know if the Name and Title of an item in the
firstList are in the secondList.