Re-implement GetHashCode for SystemInfo

but not by calling the base method; like the old one removed in 46a7e6491 did
This commit is contained in:
YoshiRulz 2020-04-14 01:38:30 +10:00
parent c9e699be1b
commit 28bc772580
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 2 additions and 0 deletions

View File

@ -260,6 +260,8 @@ namespace BizHawk.Client.Common
return base.Equals(obj);
}
public override int GetHashCode() => DisplayName.GetHashCode(); // should be unique considering the property's purpose
/// <summary>
/// Returns a <see cref="string"/> representation of current <see cref="SystemInfo"/>
/// In fact, return the same as DisplayName property