You'll need access to the IL stream for that. Theres a new method in the Whidbey reflection API to get that, but until then you either have to parse it yourself or use Lutz Roeder's ILReader library
http://www.aisto.com/roeder/dotnet/
Regards
Richard Blewett - DevelopMentor
http://staff.develop.com/richardb/weblog
nntp://news.microsoft.com/microsoft.public.dotnet.framework.clr/<74428B56-D6DA-41A8-B2EC-6687491516E3@microsoft.com>
how can i count the number of function calls that a particular function
makes? i want to be able to inspect a dll and retrieve the number of function
calls for a particular function. i know that this is possible since ildasm
actually displays the opcodes for function calls and others within a
particular function..
thanks in advance..
[microsoft.public.dotnet.framework.clr]
Maybe the original poster was talking about profiling and counting the
number of times a function is called

Signature
Sriram Krishnan
http://www.dotnetjunkies.com/weblog/sriram
> You'll need access to the IL stream for that. Theres a new method in the
> Whidbey reflection API to get that, but until then you either have to
[quoted text clipped - 24 lines]
>
> [microsoft.public.dotnet.framework.clr]
denz - 15 Oct 2004 02:49 GMT
yes, basically i just want to find out the number of times a function call is
made within a particular function.
thanks.
> Maybe the original poster was talking about profiling and counting the
> number of times a function is called
[quoted text clipped - 27 lines]
> >
> > [microsoft.public.dotnet.framework.clr]
Sriram Krishnan - 15 Oct 2004 03:04 GMT
Use a profiler. One good open source profiler is NProf. Or use any of the
commerical .NET profilers out there

Signature
Sriram Krishnan
http://www.dotnetjunkies.com/weblog/sriram
> yes, basically i just want to find out the number of times a function call
> is
[quoted text clipped - 35 lines]
>> >
>> > [microsoft.public.dotnet.framework.clr]