ElementEqualityComparer.cs 507 B

123456789101112131415161718192021222324
  1. using Autodesk.Revit.DB;
  2. using System;
  3. using System.Collections;
  4. using System.Collections.Generic;
  5. using System.Linq;
  6. using System.Text;
  7. using System.Threading.Tasks;
  8. namespace FWindSoft.Revit.Common
  9. {
  10. public class ElementEqualityComparer: IEqualityComparer<Element>
  11. {
  12. public bool Equals(Element x, Element y)
  13. {
  14. bool flag = false;
  15. return x.Id==y.Id;
  16. }
  17. public int GetHashCode(Element obj)
  18. {
  19. return 0;
  20. }
  21. }
  22. }