Skip to content

Instantly share code, notes, and snippets.

@bzbetty
Created November 15, 2012 09:29
Show Gist options
  • Save bzbetty/4077634 to your computer and use it in GitHub Desktop.
Save bzbetty/4077634 to your computer and use it in GitHub Desktop.
foreach (var child in destination)
{
if (!source.Any(sourceTarget => destIdProperty.GetValue(child, null).Equals(idProperty.GetValue(sourceTarget, null))))
{
destination.Remove(child);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment