I have 2 lists of names:
IEnumerable<dynamic> userids = null;
IEnumerable<dynamic> lsCheckedUsers = null;
The list of users and lsCheckedUsers is populated from the SQL database using dapper.
Now I want to find all userid that are not in lsCheckedUsers.
I tried the following
var userdifference = userids.Where(i => !lsCheckedUsers.Contains(lsCheckedUsers));
var userdifference = userids.Except(lsCheckedUsers);
None of the above actual values returns the difference between 2.
How to get the difference between sheets that do not exist in both.
I'm sure lsCheckedUsers have Guids that are in userid
source
share