From 08a94751e6f52df3653cb7235ce6771355329e6c Mon Sep 17 00:00:00 2001
From: Zsolt Kolbay An LDAP client authenticates to an LDAP server with a "bind request" which provides, among other, a simple authentication method.
Simple authentication in LDAP can be used with three different mechanisms:
The DebuggerDisplayAttribute
is used to determine how an object is displayed in the debugger window.
The DebuggerDisplayAttribute
constructor takes a single 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.
Naming a non-existent field, property or method 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.
+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 or property, 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.
This rule raises an issue when text specified between curly braces refers to members that don’t exist in the current context.
diff --git a/analyzers/rspec/vbnet/S4545_vb.net.html b/analyzers/rspec/vbnet/S4545_vb.net.html index 80db2002279..41584eec577 100644 --- a/analyzers/rspec/vbnet/S4545_vb.net.html +++ b/analyzers/rspec/vbnet/S4545_vb.net.html @@ -1,8 +1,9 @@The
-DebuggerDisplayAttribute
is used to determine how an object is displayed in the debugger window.The
-DebuggerDisplayAttribute
constructor takes a single 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.Naming a non-existent field, property or method 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.
+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 or property, 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.
This rule raises an issue when text specified between curly braces refers to members that don’t exist in the current context.
Noncompliant Code Example
diff --git a/analyzers/src/SonarAnalyzer.CSharp/sonarpedia.json b/analyzers/src/SonarAnalyzer.CSharp/sonarpedia.json index 4c00453c9e5..7138b901485 100644 --- a/analyzers/src/SonarAnalyzer.CSharp/sonarpedia.json +++ b/analyzers/src/SonarAnalyzer.CSharp/sonarpedia.json @@ -3,5 +3,5 @@ "languages": [ "CSH" ], - "latest-update": "2023-02-16T13:29:06.541771900Z" + "latest-update": "2023-03-02T10:14:13.012961900Z" } \ No newline at end of file diff --git a/analyzers/src/SonarAnalyzer.VisualBasic/sonarpedia.json b/analyzers/src/SonarAnalyzer.VisualBasic/sonarpedia.json index b46d8a27db4..519076fbca6 100644 --- a/analyzers/src/SonarAnalyzer.VisualBasic/sonarpedia.json +++ b/analyzers/src/SonarAnalyzer.VisualBasic/sonarpedia.json @@ -3,5 +3,5 @@ "languages": [ "VBNET" ], - "latest-update": "2023-02-16T13:29:34.979573400Z" + "latest-update": "2023-03-02T10:14:52.653036700Z" } \ No newline at end of file