mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-15 05:04:15 +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/>
|
/// <inheritdoc/>
|
||||||
public override int GetHashCode()
|
public override int GetHashCode()
|
||||||
{
|
{
|
||||||
// Generated random values.
|
return HashCode.Combine(this.Type, this.chunkType, this.data);
|
||||||
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;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <inheritdoc/>
|
/// <inheritdoc/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue