mirror of
https://gitee.com/ant-design-blazor/ant-design-blazor.git
synced 2024-12-14 08:51:27 +08:00
e6f8ce66c7
* 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>
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();
|
|
}
|
|
}
|
|
}
|