mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-15 17:31:42 +08:00
22 lines
455 B
C#
22 lines
455 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Linq;
|
|||
|
using System.Text;
|
|||
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
namespace AntDesign
|
|||
|
{
|
|||
|
public class AnchorLinkEqualityComparer : IEqualityComparer<AnchorLink>
|
|||
|
{
|
|||
|
public bool Equals(AnchorLink x, AnchorLink y)
|
|||
|
{
|
|||
|
return x.Href == y.Href;
|
|||
|
}
|
|||
|
|
|||
|
public int GetHashCode(AnchorLink obj)
|
|||
|
{
|
|||
|
return obj.Href.GetHashCode();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|