var temp = new List<string>();
foreach(var item in remoteFiles){
if(localfiles.Contains(item) == false){
temp.Add(item);
}
}
//temp now contains all items in remoteFiles that are not present in localfiles
1
solved How to compare two lists and get unmatching items – without using LINQ [closed]