Friday, October 15, 2004

Check out this new Reflector addin that creates diffs. Very cool...

http://codingsanity.blogspot.com/2004/10/reflector-diff.html

posted on Friday, October 15, 2004 7:14:00 AM UTC  #    Comments [7]
Tracked by:
"Online Games poker" (Online Games poker) [Trackback]
Monday, June 06, 2005 5:24:24 PM UTC
Let me get the straight.....
<br>
<br>You just posted a URL in underlined blue *without* making it a hyperlink?
James Curran
Monday, June 06, 2005 5:24:25 PM UTC
JonGalloway.ToString()
Monday, June 06, 2005 5:24:25 PM UTC
JonGalloway.ToString()
Monday, June 06, 2005 5:24:25 PM UTC
Ooops, fixed the link...
Jonathan de Halleux
Monday, June 06, 2005 5:24:25 PM UTC
Since email wasn't working...
<br>
<br>I was hoping to use <a title="Reflector" href="http://www.aisto.com/roeder/dotnet/" target="_blank">Reflector</a> as an alternative to the CodeElement model Microsoft provides in EnvDTE.
<br>
<br>However, IMethodDeclaration.Body appears to be always null (4.1.1.0)
<br>
<br>I know you can get enumerate and get 'instructions' by casting to a IMethodBody and accessing .Instructions, but I want to get the IStatements.
<br>
<br>From your code samples, you uses the active selection from the browser to get the ITypeDeclaration and access .Body.
<br>
<br>I would like to use <a title="Reflector" href="http://www.aisto.com/roeder/dotnet/" target="_blank">Reflector</a> without an GUI interface. Is there something I'm missing?
<br>
<br>Thanks,
<br>
<br>foreach (IModule module in assembly.Modules)
<br>{
<br> foreach (ITypeDeclaration typeDeclaration in module.Types)
<br> {
<br> foreach (IMethodDeclaration methodDeclaration in
<br>typeDeclaration.Methods)
<br> {
<br> methodDeclaration.Body is NULL
<br> }
<br> }
<br>}
<br>
Chris Parnin
Monday, June 06, 2005 5:24:25 PM UTC
Chris,
<br>Are you using it in a ILanguage implementation ? Only the IL language receives the IL information. Make the name of your language is &quot;IL&quot; and it should work
<br>
Jonathan de Halleux
Monday, June 06, 2005 5:24:26 PM UTC
Wow, superb!
<br>Thanks.
Diana
Comments are closed.