private class MyMenuComparer : IEqualityComparer
{
public bool Equals(ParMenu x, ParMenu y){ return x.parentColor == y.parentColor && x.parentMenu == y.parentMenu; }
public int GetHashCode(ParMenu obj) { return obj.parentMenu.Length; }
}
2024-02-11 15:44:10
private class MyMenuComparer : IEqualityComparer
{
public bool Equals(ParMenu x, ParMenu y){ return x.parentColor == y.parentColor && x.parentMenu == y.parentMenu; }
public int GetHashCode(ParMenu obj) { return obj.parentMenu.Length; }
}