System.Diagnostics.DebuggerHiddenAttribute does not affect 'Get' or 'Set' when applied to the Property definition
System.Diagnostics.DebuggerHiddenAttribute does not affect 'Get' or 'Set' when applied to the Property definition. Apply the attribute directly to the 'Get' and 'Set' procedures as appropriate.
The DebuggerHiddenAttribute is applied to a property declaration.
Source code can apply the DebuggerHiddenAttribute to a procedure. Doing so signals the Visual Studio debugger not to stop inside the procedure and not to allow any breakpoints to be set in the procedure.
Although you can apply DebuggerHiddenAttribute to a property, it does not have any effect. It has the effect that you want only if you apply it to the property's Get or Set procedure.
By default, this message is a warning. For information about hiding warnings or treating warnings as errors, see Configuring Warnings in Visual Basic.
Error ID: BC40051
To correct this error
- Remove the DebuggerHiddenAttribute from the property declaration and apply it to the property's Get or Set procedure as appropriate.