record struct already does this by value

This commit is contained in:
Brandon Thetford
2024-02-15 19:05:26 -07:00
parent 37b58afc39
commit 74c8920f32

View File

@@ -95,9 +95,6 @@ public readonly record struct Attribute : IEqualityOperators<Attribute, Attribut
/// <param name="color">The color.</param>
public Attribute (in Color color) : this (color, color) { }
/// <inheritdoc/>
public bool Equals (Attribute other) { return PlatformColor == other.PlatformColor && Foreground == other.Foreground && Background == other.Background; }
/// <inheritdoc/>
public override int GetHashCode () { return HashCode.Combine (PlatformColor, Foreground, Background); }