From 5b5e599fb95bd763846d0df387d5407229062736 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lasse=20V=C3=A5gs=C3=A6ther=20Karlsen?= Date: Wed, 31 Jul 2024 15:17:24 +0200 Subject: [PATCH 1/2] Add DebuggerDisplayAttribute to ExifValue --- src/ImageSharp/Metadata/Profiles/Exif/Values/ExifValue.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ImageSharp/Metadata/Profiles/Exif/Values/ExifValue.cs b/src/ImageSharp/Metadata/Profiles/Exif/Values/ExifValue.cs index eacb41cfb3..41b947e20c 100644 --- a/src/ImageSharp/Metadata/Profiles/Exif/Values/ExifValue.cs +++ b/src/ImageSharp/Metadata/Profiles/Exif/Values/ExifValue.cs @@ -1,10 +1,12 @@ // Copyright (c) Six Labors. // Licensed under the Six Labors Split License. +using System.Diagnostics; using System.Runtime.CompilerServices; namespace SixLabors.ImageSharp.Metadata.Profiles.Exif; +[DebuggerDisplay("{Tag} = {IsArray?\"[..]\":ToString(),nq} ({GetType().Name,nq})")] internal abstract class ExifValue : IExifValue, IEquatable { protected ExifValue(ExifTag tag) => this.Tag = tag; From 1e4b895e3da611a434fc2ade00b0284f7314d3fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lasse=20V=C3=A5gs=C3=A6ther=20Karlsen?= Date: Wed, 31 Jul 2024 15:22:30 +0200 Subject: [PATCH 2/2] Add DebuggerDisplayAttribute to IptcValue --- src/ImageSharp/Metadata/Profiles/IPTC/IptcValue.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ImageSharp/Metadata/Profiles/IPTC/IptcValue.cs b/src/ImageSharp/Metadata/Profiles/IPTC/IptcValue.cs index 1a75ecba22..78f7f6de08 100644 --- a/src/ImageSharp/Metadata/Profiles/IPTC/IptcValue.cs +++ b/src/ImageSharp/Metadata/Profiles/IPTC/IptcValue.cs @@ -1,6 +1,7 @@ // Copyright (c) Six Labors. // Licensed under the Six Labors Split License. +using System.Diagnostics; using System.Text; namespace SixLabors.ImageSharp.Metadata.Profiles.Iptc; @@ -8,6 +9,7 @@ namespace SixLabors.ImageSharp.Metadata.Profiles.Iptc; /// /// Represents a single value of the IPTC profile. /// +[DebuggerDisplay("{Tag} = {ToString(),nq} ({GetType().Name,nq})")] public sealed class IptcValue : IDeepCloneable { private byte[] data = Array.Empty();