Created
February 18, 2015 21:13
-
-
Save komainu85/3ba463462e0fa669f98c to your computer and use it in GitHub Desktop.
Sitecore Item Template 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 ItemTemplateComparer : IEqualityComparer<Item> | |
{ | |
public bool Equals(Item x, Item y) | |
{ | |
return x.TemplateID == y.TemplateID; | |
} | |
public int GetHashCode(Item obj) | |
{ | |
return obj.TemplateID.GetHashCode(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment