Hi, I want to write some program that would read through assemblies and goes into the method and find out all the calls that are made in that method. Can you please help me write that...
So suppose there is a method Execute and it calls
Execute()
{
(new Manager1()).SomeMethod1();
(new Manager2()).SomeMethod2();
(new Manager3()).SomeMethod3();
}
I want to write Manager1 and someMethodX, all these to a database.

Dipal ChoksiRank #199 · 12K reputationPosted Sep 7, 2010, 9:14 AM EDT
Cheers!
Dipal
Adhar Jain3 reputationPosted Sep 7, 2010, 9:20 PM EDT
What I want is..all the method calls within a method in an assembly and the conditions where these calls are made e.g
if(condition1)
(new Manager1()).SomeMethod1();
else if(condition2)
(new Manager1()).SomeMethod2();
condition1? Manager1? SomeMethod1/2?
I know this is possible through reflection but how.. is looking for..