Home All Groups Group Topic Archive Search About

RE: How to access code inside methods

Author
2 May 2007 1:19 PM
Greg Hart
Juan,
    Did you ever find a solution to this problem.  I need to do the exact
same thing and find dependencies within methods.  I know this post is pretty
old.  Any chance you remember and can point me in the right direction?
--
Thanks, Greg


Show quote
"Juan Dent" wrote:

> Thanks to all replies. I believe I can work my way from here.
>
> Juan Dent.
>
> "Richard Blewett [DevelopMentor]" wrote:
>
> > Lutz Roeder (author of Reflector) has an IL stream accessor API.
> >
> >  Go to http://www.aisto.com/roeder/dotnet/
> >
> >  and look for the ILReader download.
> >
> >  Acces to the IL will give you access to the method bodies.
> >
> >  Regards
> >
> >  Richard Blewett - DevelopMentor
> >  http://staff.develop.com/richardb/weblog
> >
> >    nntp://news.microsoft.com/microsoft.public.dotnet.framework/<Ned3gGVoEHA.3***@cpmsftngxa06.phx.gbl>
> >
> >  Hi,
> > 
> >  Now I am keeping searching if there is such tool, but I think it is very
> >  difficult to do the job.
> >  If I have any new information I will update you with new information ASAP.
> > 
> >  Best regards,
> > 
> >  Peter Huang
> >  Microsoft Online Partner Support
> > 
> >  Get Secure! - www.microsoft.com/security
> >  This posting is provided "AS IS" with no warranties, and confers no rights.
> > 
> > 
> >  ---
> >  Incoming mail is certified Virus Free.
> >  Checked by AVG anti-virus system (http://www.grisoft.com).
> >  Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004
> >
> >
> > 
> >  [microsoft.public.dotnet.framework]
> >

Author
3 May 2007 2:11 AM
Juan Dent
Hi,

What I did was to run ildasm.exe on the assembly and parse the IL. Not a
simple solution and is dependent on IL version. If you find a better let me
know.

....
--
Thanks in advance,

Juan Dent, M.Sc.


Show quote
"Greg Hart" wrote:

> Juan,
>     Did you ever find a solution to this problem.  I need to do the exact
> same thing and find dependencies within methods.  I know this post is pretty
> old.  Any chance you remember and can point me in the right direction?
> --
> Thanks, Greg
>
>
> "Juan Dent" wrote:
>
> > Thanks to all replies. I believe I can work my way from here.
> >
> > Juan Dent.
> >
> > "Richard Blewett [DevelopMentor]" wrote:
> >
> > > Lutz Roeder (author of Reflector) has an IL stream accessor API.
> > >
> > >  Go to http://www.aisto.com/roeder/dotnet/
> > >
> > >  and look for the ILReader download.
> > >
> > >  Acces to the IL will give you access to the method bodies.
> > >
> > >  Regards
> > >
> > >  Richard Blewett - DevelopMentor
> > >  http://staff.develop.com/richardb/weblog
> > >
> > >    nntp://news.microsoft.com/microsoft.public.dotnet.framework/<Ned3gGVoEHA.3***@cpmsftngxa06.phx.gbl>
> > >
> > >  Hi,
> > > 
> > >  Now I am keeping searching if there is such tool, but I think it is very
> > >  difficult to do the job.
> > >  If I have any new information I will update you with new information ASAP.
> > > 
> > >  Best regards,
> > > 
> > >  Peter Huang
> > >  Microsoft Online Partner Support
> > > 
> > >  Get Secure! - www.microsoft.com/security
> > >  This posting is provided "AS IS" with no warranties, and confers no rights.
> > > 
> > > 
> > >  ---
> > >  Incoming mail is certified Virus Free.
> > >  Checked by AVG anti-virus system (http://www.grisoft.com).
> > >  Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004
> > >
> > >
> > > 
> > >  [microsoft.public.dotnet.framework]
> > >

AddThis Social Bookmark Button