mirror of
https://github.com/aaru-dps/Aaru.CommonTypes.git
synced 2025-12-16 19:24:30 +00:00
General code style and feature fixes.
This commit is contained in:
@@ -41,6 +41,7 @@ namespace Aaru.CommonTypes;
|
||||
|
||||
using System;
|
||||
|
||||
/// <inheritdoc cref="System.IComparable<Partition>" />
|
||||
/// <summary>Partition structure.</summary>
|
||||
public struct Partition : IEquatable<Partition>, IComparable<Partition>
|
||||
{
|
||||
@@ -77,7 +78,7 @@ public struct Partition : IEquatable<Partition>, IComparable<Partition>
|
||||
/// <inheritdoc />
|
||||
|
||||
// ReSharper disable once NonReadonlyMemberInGetHashCode
|
||||
public override int GetHashCode() => Start.GetHashCode() + End.GetHashCode();
|
||||
public readonly override int GetHashCode() => Start.GetHashCode() + End.GetHashCode();
|
||||
|
||||
/// <summary>
|
||||
/// Compares this partition with another and returns an integer that indicates whether the current partition
|
||||
|
||||
Reference in New Issue
Block a user