I have 2 list:
myObject object1 = new myObject(id = 1, title = \"object1\"}; myObject object2 = new myObject(id = 2, title = \"object2\"}; myObject object3 =
LINQ Solution:
myObjectList = myObjectList.Where(X => idList.Contains(X.id)).ToList();
IEnumerable<myObject> matches = myObjectList.Join( idList, o => o.Id, id => id, (o, id) => o);