CA1811 AvoidUncalledPrivateCode - UI PropertyGrid

I have declared different properties in my application whose final value is only set by the external user using a propertyGrid UI. When I run code analysis on my code, I get the CA1811 warning for these properties. Is there any way to get the same functionality and avoid this warning?

Thank you in advance.

Sylvia.

[334 byte] By [sweilrus] at [2007-12-24]
# 1

Hi Sylvia,

In this case your properties will only be accessed via reflection at runtime. There is no option for FxCop to detect any use of these properties at compile time.
You'll probably have to suppress these violations.

Sorry for the inconvenience.


Regards,

Jeffrey

JeffreyvanGogh-MSFT at 2007-8-31 > top of Msdn Tech,Visual Studio Team System,Visual Studio Code Analysis and Code Metrics...

Visual Studio Team System

Site Classified