Skip to content

Instantly share code, notes, and snippets.

@alohasoftworks
Created January 28, 2010 19:09
Show Gist options
  • Select an option

  • Save alohasoftworks/289032 to your computer and use it in GitHub Desktop.

Select an option

Save alohasoftworks/289032 to your computer and use it in GitHub Desktop.
public Boolean compareLists(List<String> list1, List<String> list2)
{
foreach (String x in list1)
{
foreach (String y in list2)
{
if (String.Equals(x,y))
return true;
}
}
return false;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment