Click here to Skip to main content
14,427,124 members
Rate this:
Please Sign up or sign in to 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

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


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


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, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100