123456789101112131415161718192021222324252627282930313233 |
- using System;
- using System.Collections.Generic;
- namespace SAGA.RevitUtils.MEP
- {
- public class CommonEqualComparer<T> : IEqualityComparer<T>
- {
- private Func<T, T, bool> m_func;
- public CommonEqualComparer(Func<T, T, bool> func)
- {
- this.m_func = func;
- }
- public bool Equals(T x, T y)
- {
- bool flag = false;
- if (this.m_func != null)
- {
- flag = this.m_func.Invoke(x, y);
- }
- return flag;
- }
- public int GetHashCode(T obj)
- {
- return 0;
- }
- }
- }
|