dotnet-dynamic-query/PoweredSoft.DynamicQuery/QueryInterceptorEqualityComparer.cs

19 lines
474 B
C#

using PoweredSoft.DynamicQuery.Core;
using System.Collections.Generic;
namespace PoweredSoft.DynamicQuery
{
public class QueryInterceptorEqualityComparer : IEqualityComparer<IQueryInterceptor>
{
public bool Equals(IQueryInterceptor x, IQueryInterceptor y)
{
return x.GetType() == y.GetType();
}
public int GetHashCode(IQueryInterceptor obj)
{
return obj.GetType().GetHashCode();
}
}
}