mirror of
https://github.com/gui-cs/Terminal.Gui.git
synced 2026-01-01 16:59:35 +01:00
DimAuto.Equals readability
This commit is contained in:
@@ -390,7 +390,14 @@ public class DimAuto (DimAutoStyle style, Dim? minimumContentDim, Dim? maximumCo
|
||||
/// <inheritdoc/>
|
||||
public override bool Equals (object? other)
|
||||
{
|
||||
return other is DimAuto auto && auto.MinimumContentDim == MinimumContentDim && auto.MaximumContentDim == MaximumContentDim && auto.Style == Style;
|
||||
if (other is not DimAuto auto)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return auto.MinimumContentDim == MinimumContentDim &&
|
||||
auto.MaximumContentDim == MaximumContentDim &&
|
||||
auto.Style == Style;
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
|
||||
Reference in New Issue
Block a user