public int CompareTo(ILookupCriteria other)
{
if (other != null)
{
try
{
if (other.Criterion == Criterion)
return 1;
if (other.Criterion.Any(crit => Criterion.ContainsKey(crit.Key) && Criterion[crit.Key].Equals(crit.Value)))
return 0;
return -1;
}
catch (Exception ex)
{
LoggingUtility.LogError(ex);
}
}
return -99;
}