Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Collections.Generic;
- using System.Xml.Linq;
- namespace Get_Names
- {
- class DistinctComparerClass : IEqualityComparer<XElement>
- {
- public bool Equals(XElement x, XElement y)
- {
- return x.Value.Equals(y.Value);
- }
- public int GetHashCode(XElement obj)
- {
- return obj.Value.GetHashCode();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement