Explorar o código

Collection expression

Brandon Thetford hai 1 ano
pai
achega
e7fdd4c5a1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ()
     {