mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 08:50:25 +01:00
record struct already does this by value
This commit is contained in:
@@ -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); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user