浏览代码

Collection expression

Brandon Thetford 1 年之前
父节点
当前提交
e7fdd4c5a1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Terminal.Gui/Drawing/LineCanvas.cs

+ 1 - 1
Terminal.Gui/Drawing/LineCanvas.cs

@@ -4,7 +4,7 @@ namespace Terminal.Gui;
 /// <summary>Facilitates box drawing and line intersection detection and rendering.  Does not support diagonal lines.</summary>
 public class LineCanvas : IDisposable
 {
-    private readonly List<StraightLine> _lines = new ();
+    private readonly List<StraightLine> _lines = [];
 
     private readonly Dictionary<IntersectionRuneType, IntersectionRuneResolver> runeResolvers = new ()
     {