mirror of
https://github.com/aaru-dps/Aaru.CommonTypes.git
synced 2025-12-16 19:24:30 +00:00
Fix non-read-only member in GetHashCode()
This commit is contained in:
@@ -2095,6 +2095,7 @@ namespace Aaru.CommonTypes.Metadata
|
||||
return obj.GetType() == GetType() && Equals((DensityCode)obj);
|
||||
}
|
||||
|
||||
// ReSharper disable once NonReadonlyMemberInGetHashCode
|
||||
public override int GetHashCode() => Code;
|
||||
}
|
||||
|
||||
|
||||
@@ -74,6 +74,7 @@ namespace Aaru.CommonTypes
|
||||
public override bool Equals(object obj) => obj is Partition partition && Equals(partition);
|
||||
|
||||
/// <inheritdoc />
|
||||
// ReSharper disable once NonReadonlyMemberInGetHashCode
|
||||
public override int GetHashCode() => Start.GetHashCode() + End.GetHashCode();
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in New Issue
Block a user