浏览代码

Declare IEqualityOperators for Dim

Brandon Thetford 11 月之前
父节点
当前提交
e90a115f21
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      Terminal.Gui/View/Layout/Dim.cs

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

@@ -1,8 +1,8 @@
 #nullable enable
-using System.Diagnostics;
-
 namespace Terminal.Gui;
 
+using System.Numerics;
+
 /// <summary>
 ///     <para>
 ///         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>
 /// </remarks>
-public abstract record Dim
+public abstract record Dim : IEqualityOperators<Dim, Dim, bool>
 {
     #region static Dim creation methods