From 5149cf8d14ae36f67d9294e9bda50e81ed5626c8 Mon Sep 17 00:00:00 2001 From: Aptivi Date: Thu, 3 Oct 2024 16:42:58 +0300 Subject: [PATCH] add - Added debugger display for PropertyInfo --- We've improved your debugging experience by adding the display attribute to the PropertyInfo instance. --- Type: add Breaking: False Doc Required: False Backport Required: False Part: 1/1 --- VisualCard/Parsers/Arguments/ArgumentInfo.cs | 2 +- VisualCard/Parsers/Arguments/PropertyInfo.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/VisualCard/Parsers/Arguments/ArgumentInfo.cs b/VisualCard/Parsers/Arguments/ArgumentInfo.cs index c5a471f..c384327 100644 --- a/VisualCard/Parsers/Arguments/ArgumentInfo.cs +++ b/VisualCard/Parsers/Arguments/ArgumentInfo.cs @@ -29,7 +29,7 @@ namespace VisualCard.Parsers.Arguments /// /// Argument info for properties /// - [DebuggerDisplay("{Key} = [{string.Split(\", \", AllValues)}]")] + [DebuggerDisplay("{Key} = [{string.Join(\", \", AllValues)}]")] public class ArgumentInfo : IEquatable { private readonly string key = ""; diff --git a/VisualCard/Parsers/Arguments/PropertyInfo.cs b/VisualCard/Parsers/Arguments/PropertyInfo.cs index 33a610c..3777445 100644 --- a/VisualCard/Parsers/Arguments/PropertyInfo.cs +++ b/VisualCard/Parsers/Arguments/PropertyInfo.cs @@ -18,7 +18,7 @@ // using System; -using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using Textify.General; @@ -27,6 +27,7 @@ namespace VisualCard.Parsers.Arguments /// /// Property info class /// + [DebuggerDisplay("Property: {Arguments.Length} args, {Prefix} [G: {Group}] = {Value}")] public class PropertyInfo { private string rawValue = "";