Click here to Skip to main content
15,902,198 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I have a xaml file and FxCop reports following issue:

Warning, Certainty 75, for AvoidUncalledPrivateCode
{
Target : #_CreateDelegate(System.Type,System.String) (IntrospectionTargetMember)
Resolution : "'MyView._CreateDelegate(Type,
string)' appears to have no upstream public or protected
callers."
Help : http://msdn.microsoft.com/library/ms182264(VS.100).aspx (String)
Category : Microsoft.Performance (String)
CheckId : CA1811 (String)
RuleFile : Performance Rules (String)
Info : "There is uncalled code that is not externally visible
and is not a known runtime entry point. If this violation
fires in error, please send a problem report to the
Visual Studio Code Analysis team."
Created : 6/10/2015 4:07:40 AM (DateTime)
LastSeen : 6/10/2015 4:07:40 AM (DateTime)
Status : Active (MessageStatus)
Fix Category : NonBreaking (FixCategories)
}

The function CreateDelegate cannot be found in MyView.xaml
The CreateDelegate method can only be seen in the MyView.g.cs only.
What should be the best method to either suppress or fix this kind of FxCop warning?

Thanks,
Meha
Posted
Updated 9-Jun-15 18:19pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900