CallStacks method equivalent in fxCop 10.0
-
Wednesday, April 04, 2012 12:47 PM
Hi,
What is the equivalent of CallStacks method and VisitCall method of fxcop.135 in fxcop 10.0?
How can we get the relevant functionality in the newer version?
All Replies
-
Wednesday, April 04, 2012 3:09 PM
In 1.35, CallGraph.CallStacks used CallGraph.CallersFor to build its result list. If you want exactly the same functionality in 10.0, I'd recommend grabbing a copy of a decompiler like Reflector to see how it was done in 1.35.
If the "VisitCall" method to which you refer was the one inherited from ExecutionVisitor via BaseControlFlowRule, then you've got quite a bit of changes to make. The old control flow engine has been completely replaced by a new Phoenix-based engine. You will need to rewrite your old control flow rule(s) to use either the new dataflow engine or the introspection engine.
- Proposed As Answer by Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator Monday, April 09, 2012 3:13 AM
- Marked As Answer by Jack Zhai - MSFTMicrosoft Contingent Staff, Moderator Wednesday, April 11, 2012 1:53 AM

