Today I come across the problem while comparing two different lists. The basic requirement is finding the records which are present in one list but not in other and vise versa. I thought of sharing this piece of code which might help for you to do the same task.
Let us take the two Generic lists named timeEntryList and caseDataList. The aim is comparing these two lists and bring the results into two separate list.
Now auditTimeEntryList contains the records which are not present in the caseDataList.
Let us write the code for bringing the records which are present in caseDataList but not in timeEntryList.
|Share this post :|