Fix non-read-only member in GetHashCode()

This commit is contained in:
2021-08-17 16:29:32 +01:00
parent 488a9c12cb
commit 9e9af262bd
2 changed files with 2 additions and 0 deletions

View File

@@ -2095,6 +2095,7 @@ namespace Aaru.CommonTypes.Metadata
return obj.GetType() == GetType() && Equals((DensityCode)obj);
}
// ReSharper disable once NonReadonlyMemberInGetHashCode
public override int GetHashCode() => Code;
}

View File

@@ -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>