From d75179b7429d21f36fb218bfeb0be8dcdc560c2b Mon Sep 17 00:00:00 2001 From: Frederik Raabye Date: Thu, 11 Jun 2015 11:51:26 +0200 Subject: [PATCH] Added debugger display attribute to PropertyEditor base class. Fixes: U4-6534 --- src/Umbraco.Core/PropertyEditors/PropertyEditor.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/Umbraco.Core/PropertyEditors/PropertyEditor.cs b/src/Umbraco.Core/PropertyEditors/PropertyEditor.cs index baa1431f29..9b39f2be0b 100644 --- a/src/Umbraco.Core/PropertyEditors/PropertyEditor.cs +++ b/src/Umbraco.Core/PropertyEditors/PropertyEditor.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics; using System.Linq; using Newtonsoft.Json; using Umbraco.Core.IO; @@ -13,6 +14,7 @@ namespace Umbraco.Core.PropertyEditors /// /// The Json serialization attributes are required for manifest property editors to work /// + [DebuggerDisplay("{DebuggerDisplay(),nq}")] public class PropertyEditor : IParameterEditor { private readonly PropertyEditorAttribute _attribute; @@ -162,5 +164,13 @@ namespace Umbraco.Core.PropertyEditors { return Alias.GetHashCode(); } + + /// + /// Provides a summary of the PropertyEditor for use with the . + /// + protected virtual string DebuggerDisplay() + { + return string.Format("Name: {0}, Alias: {1}, IsParameterEditor: {2}", Name, Alias, IsParameterEditor); + } } } \ No newline at end of file