From 1cf3bad1324f1a5abd5e42d5ccdb983ebd16a7fe Mon Sep 17 00:00:00 2001 From: Antonio Aversa Date: Mon, 27 Feb 2023 18:26:30 +0100 Subject: [PATCH] Review 2 --- rules/S4545/csharp/rule.adoc | 4 ++-- rules/S4545/highlighting.adoc | 2 +- rules/S4545/message.adoc | 2 +- rules/S4545/vbnet/rule.adoc | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/rules/S4545/csharp/rule.adoc b/rules/S4545/csharp/rule.adoc index 4ee3f535256..1bda8518ee6 100644 --- a/rules/S4545/csharp/rule.adoc +++ b/rules/S4545/csharp/rule.adoc @@ -1,7 +1,7 @@ -The ``DebuggerDisplayAttribute`` is used to determine how an object is displayed in the debugger window. +The `DebuggerDisplayAttribute` is used to determine how an object is displayed in the debugger window. -The ``DebuggerDisplayAttribute`` constructor takes a single mandatory argument: the string to be displayed in the value column for instances of the type. Any text within curly braces is evaluated as the name of a member, or any complex expression converted to a string value, containing method calls and operators. +The `DebuggerDisplayAttribute` constructor takes a single mandatory argument: the string to be displayed in the value column for instances of the type. Any text within curly braces is evaluated as the name of a field, property, or method, or any complex expression containing method calls and operators. Naming a non-existent member between curly braces will result in a CS0103 error in the debug window when debugging objects. Although there is no impact on the production code, providing a wrong value can lead to difficulties when debugging the application. diff --git a/rules/S4545/highlighting.adoc b/rules/S4545/highlighting.adoc index a13e737601c..2ef73ed3b18 100644 --- a/rules/S4545/highlighting.adoc +++ b/rules/S4545/highlighting.adoc @@ -1,4 +1,4 @@ === Highlighting -format string parameter of the ``DebuggerDisplayAttribute`` +format string parameter of the `DebuggerDisplayAttribute` diff --git a/rules/S4545/message.adoc b/rules/S4545/message.adoc index 6a8fa140f1f..38d16d65e3b 100644 --- a/rules/S4545/message.adoc +++ b/rules/S4545/message.adoc @@ -1,4 +1,4 @@ === Message -Fix the name between the curly braces so that it matches a field or property of this object +Fix the name between the curly braces so that it matches a field, property or method of this object diff --git a/rules/S4545/vbnet/rule.adoc b/rules/S4545/vbnet/rule.adoc index 37c224a653b..385edcd9800 100644 --- a/rules/S4545/vbnet/rule.adoc +++ b/rules/S4545/vbnet/rule.adoc @@ -1,7 +1,7 @@ -The ``DebuggerDisplayAttribute`` is used to determine how an object is displayed in the debugger window. +The `DebuggerDisplayAttribute` is used to determine how an object is displayed in the debugger window. -The ``DebuggerDisplayAttribute`` constructor takes a single mandatory argument: the string to be displayed in the value column for instances of the type. Any text within curly braces is evaluated as the name of member, or any complex expression converted to a string value, containing method calls and operators. +The `DebuggerDisplayAttribute` constructor takes a single mandatory argument: the string to be displayed in the value column for instances of the type. Any text within curly braces is evaluated as the name of a field, property, or method, or any complex expression containing method calls and operators. Naming a non-existent member between curly braces will result in a BC30451 error in the debug window when debugging objects. Although there is no impact on the production code, providing a wrong value can lead to difficulties when debugging the application.