[Solved] How to compare two lists and get unmatching items – without using LINQ [closed]

[ad_1]

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

[ad_2]

solved How to compare two lists and get unmatching items – without using LINQ [closed]