Radarr/NzbDrone.Common/PathEqualityComparer.cs

21 lines
419 B
C#
Raw Normal View History

2013-08-21 01:17:06 +00:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NzbDrone.Common
{
public class PathEqualityComparer : IEqualityComparer<String>
{
public bool Equals(string x, string y)
{
return x.PathEquals(y);
}
public int GetHashCode(string obj)
{
return obj.CleanFilePath().GetHashCode();
}
}
}