From c0ad4994cba3026a51f7c6dbf76fb0f7a5a33d4c Mon Sep 17 00:00:00 2001 From: Poker Date: Mon, 7 Apr 2025 22:01:37 +0800 Subject: [PATCH] use overload ctor --- src/ImageSharp/Formats/Icon/IconDir.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/ImageSharp/Formats/Icon/IconDir.cs b/src/ImageSharp/Formats/Icon/IconDir.cs index 45781295a..36d5d8820 100644 --- a/src/ImageSharp/Formats/Icon/IconDir.cs +++ b/src/ImageSharp/Formats/Icon/IconDir.cs @@ -26,7 +26,12 @@ internal struct IconDir /// public ushort Count; - public IconDir(IconFileType type, ushort count = 0) + public IconDir(IconFileType type) + : this(type, 0) + { + } + + public IconDir(IconFileType type, ushort count) : this(0, type, count) { }