Browse Source

Declare IEqualityOperators for Dim

Brandon Thetford 11 months ago
parent
commit
e90a115f21
1 changed files with 3 additions and 3 deletions
  1. 3 3
      Terminal.Gui/View/Layout/Dim.cs

+ 3 - 3
Terminal.Gui/View/Layout/Dim.cs

@@ -1,8 +1,8 @@
 #nullable enable
 #nullable enable
-using System.Diagnostics;
-
 namespace Terminal.Gui;
 namespace Terminal.Gui;
 
 
+using System.Numerics;
+
 /// <summary>
 /// <summary>
 ///     <para>
 ///     <para>
 ///         A Dim object describes the dimensions of a <see cref="View"/>. Dim is the type of the
 ///         A Dim object describes the dimensions of a <see cref="View"/>. Dim is the type of the
@@ -78,7 +78,7 @@ namespace Terminal.Gui;
 ///     </para>
 ///     </para>
 ///     <para></para>
 ///     <para></para>
 /// </remarks>
 /// </remarks>
-public abstract record Dim
+public abstract record Dim : IEqualityOperators<Dim, Dim, bool>
 {
 {
     #region static Dim creation methods
     #region static Dim creation methods