Skip to content

Commit

Permalink
Review 2
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioaversa committed Feb 27, 2023
1 parent 5c5b76b commit 1cf3bad
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions 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.
Expand Down
2 changes: 1 addition & 1 deletion rules/S4545/highlighting.adoc
@@ -1,4 +1,4 @@
=== Highlighting

format string parameter of the ``DebuggerDisplayAttribute``
format string parameter of the `DebuggerDisplayAttribute`

2 changes: 1 addition & 1 deletion 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

4 changes: 2 additions & 2 deletions 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.
Expand Down

0 comments on commit 1cf3bad

Please sign in to comment.