From 97c1416934974e2e8579fc7789716eb7ba11458a Mon Sep 17 00:00:00 2001 From: Natalia Portillo Date: Tue, 15 Nov 2022 01:34:58 +0000 Subject: [PATCH] General code style and feature fixes. --- Partition.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Partition.cs b/Partition.cs index 03b9959..95d750d 100644 --- a/Partition.cs +++ b/Partition.cs @@ -41,6 +41,7 @@ namespace Aaru.CommonTypes; using System; +/// /// Partition structure. public struct Partition : IEquatable, IComparable { @@ -77,7 +78,7 @@ public struct Partition : IEquatable, IComparable /// // ReSharper disable once NonReadonlyMemberInGetHashCode - public override int GetHashCode() => Start.GetHashCode() + End.GetHashCode(); + public readonly override int GetHashCode() => Start.GetHashCode() + End.GetHashCode(); /// /// Compares this partition with another and returns an integer that indicates whether the current partition