Speedier unmapped folders lookup.

This commit is contained in:
Mark McDowall 2013-08-20 18:17:06 -07:00
commit 0c2a1c60b1
5 changed files with 41 additions and 18 deletions

View file

@ -0,0 +1,20 @@
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();
}
}
}