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:
parent
c9e699be1b
commit
28bc772580
|
@ -260,6 +260,8 @@ namespace BizHawk.Client.Common
|
||||||
return base.Equals(obj);
|
return base.Equals(obj);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override int GetHashCode() => DisplayName.GetHashCode(); // should be unique considering the property's purpose
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Returns a <see cref="string"/> representation of current <see cref="SystemInfo"/>
|
/// Returns a <see cref="string"/> representation of current <see cref="SystemInfo"/>
|
||||||
/// In fact, return the same as DisplayName property
|
/// In fact, return the same as DisplayName property
|
||||||
|
|
Loading…
Reference in New Issue