mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 18:27:23 +01:00
GetHashCode can be simplified
This commit is contained in:
parent
e6861b1cff
commit
8531603ff2
1 changed files with 1 additions and 6 deletions
|
|
@ -84,12 +84,7 @@ namespace Dalamud.Game.Text.SeStringHandling.Payloads
|
|||
/// <inheritdoc/>
|
||||
public override int GetHashCode()
|
||||
{
|
||||
// Generated random values.
|
||||
var hashCode = 1216194372;
|
||||
hashCode = (hashCode * -1521134295) + this.Type.GetHashCode();
|
||||
hashCode = (hashCode * -1521134295) + this.chunkType.GetHashCode();
|
||||
hashCode = (hashCode * -1521134295) + EqualityComparer<byte[]>.Default.GetHashCode(this.data);
|
||||
return hashCode;
|
||||
return HashCode.Combine(this.Type, this.chunkType, this.data);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue