It's not really that easy. You will have to get a MethodInfo instance
for all the methods in the assembly, for every type, every property get and
set, every event add and remove.
Once you have that IL, you will have to parse the IL byte stream and
call the ResolveMethod instance on the Module instance that the type being
examined is in, and look to see if the instance corresponds to the
MethodInfo for your method that you are trying to determine the use of.
--
- Nicholas Paldino [.NET/C# MVP]
-
mv*@spam.guard.caspershouse.com
"JeffinPittsburgh" <Je**************@discussions.microsoft.comwrote in
message news:4B**********************************@microsof t.com...
>I want to develop a small utility similar to the "Find all References" in
Visual Studio so that I can determines if methods in a library are
actually
being used inside an exe assembly. It is easy enough to find all the
public
methods in the library, but how do I find if a particular method is being
called in the exe assembly? Does anyone have a code example?