Skip to content

Commit b968a69

Browse files
committed
Use different collection initialization.
1 parent 048544b commit b968a69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Magick.NET/Drawing/DrawablePath.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ public sealed class DrawablePath : IDrawablePath, IDrawingWand
1717
/// </summary>
1818
/// <param name="paths">The paths to use.</param>
1919
public DrawablePath(params IPath[] paths)
20-
=> _paths = new List<IPath>(paths);
20+
=> _paths = [.. paths];
2121

2222
/// <summary>
2323
/// Initializes a new instance of the <see cref="DrawablePath"/> class.
2424
/// </summary>
2525
/// <param name="paths">The paths to use.</param>
2626
public DrawablePath(IEnumerable<IPath> paths)
27-
=> _paths = new List<IPath>(paths);
27+
=> _paths = [.. paths];
2828

2929
/// <summary>
3030
/// Gets the paths to use.

0 commit comments

Comments
 (0)