1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-16 16:23:39 +08:00

Override basic equality function too

This commit is contained in:
Dean Herbert
2019-07-15 15:50:50 +09:00
Unverified
parent 9c1badd2e3
commit d0c8aaba4e
+2
View File
@@ -24,6 +24,8 @@ namespace osu.Game.Rulesets
public bool Equals(RulesetInfo other) => other != null && ID == other.ID && Available == other.Available && Name == other.Name && InstantiationInfo == other.InstantiationInfo;
public override bool Equals(object obj) => obj is RulesetInfo rulesetInfo && Equals(rulesetInfo);
[SuppressMessage("ReSharper", "NonReadonlyMemberInGetHashCode")]
public override int GetHashCode()
{