Click here to Skip to main content
15,894,546 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi, I have made a FxCOp Custom rule where I am to return a numerical variable back to the resolution at the end of the code analysis.

I have made the following changes and I am getting the following compilation error

In the Rules XML file

HTML
<Resolution Name="StaticPrefix"> No. of IL instructions is '{0}'</Resolution>


and in the C# code,
C#
In public override ProblemCollection Check(Member member)


C#
base.Problems.Add(new Problem(base.GetNamedResolution("StaticPrefix",flag.ToString);


Finally I am getting the compilation error as

There are invalid arguments

What am I doing wrong?
Posted

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