mirror of
https://github.com/Radarr/Radarr.git
synced 2024-09-11 03:52:33 +02:00
21 lines
419 B
C#
21 lines
419 B
C#
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();
|
|
}
|
|
}
|
|
}
|