ant-design-blazor/components/anchor/AnchorLinkEqualityComparer.cs
Brian Ding e6f8ce66c7 feat(docs): add affixed demo anchor (#366)
* feat(module: anchor): update rendering when childcontent changed

* feat: add affixed demo list

* fix(module: affix): offsettop does not work until scroll to the top

* fix: display title

Co-authored-by: ElderJames <shunjiey@hotmail.com>
2020-07-16 13:59:56 +08:00

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();
}
}
}