Created
February 18, 2015 21:11
-
-
Save komainu85/d2a44151ed246e5bc137 to your computer and use it in GitHub Desktop.
Sitecore Item Comparer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class ItemComparer : IEqualityComparer<Item> | |
{ | |
public bool Equals(Item x, Item y) | |
{ | |
return x.ID == y.ID; | |
} | |
public int GetHashCode(Item obj) | |
{ | |
return obj.ID.GetHashCode(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks. Why this isn't native, one can only guess. I wonder if they use their own APIs.