Eric Hammersley

<insert impressive list of technology to blog about here>

  Home  |   Contact  |   Syndication    |   Login
  92 Posts | 0 Stories | 136 Comments | 319 Trackbacks

News

Subscribe in NewsGator Online

Thawte WOT Notary
Serving Southern Indiana


Archives

Post Categories

Blogroll

Listen, if you get a chance to hear Joel Pobar (CLR PM) talk make sure you do it.  This guy knows his stuff.  His cabana talk tonight focused on Reflection Best Practices.  Cabana #6 was packed and for good reason.  He took us deep into reflection, perf, CLR parsing of assembly meta-data and proper technique.  Honestly, and this is just my opinion, I believe Joel is one of the most knowledgeable speakers I’ve had the pleasure to hear.  If you want to know the inner workings of the CLR I believe this is your guy.  If you catch him around the cabanas tomorrow and you have questions about the CLR you should grab him.  I also recommend checking out his blog at http://blogs.msdn.com/joelpob/.  You won’t be sorry. 

On a side note, someone asked during the session if obfuscated code (don’t remember how we got on this topic) could be debugged via stack traces returned from the field.  While the answer given was no, or at least that it was very difficult, that’s not entirely correct.  If you obfuscate with the PreEmptive tool (either Standard or Professional) it will output a translation file ( I can’t remember what they call the file) that can be used to translate your stack trace from the field into usable information that you can debug just as you would non-obfuscated code.  The PreEmptive team at booth 1041 can explain this a lot better.  I recommend you check this out.  .NET code protection is something we all need to take a look at and I believe the PreEmptive folks go to great lengths to make it as painless for us as possible.

posted on Wednesday, June 08, 2005 11:56 PM

Feedback

# re: DEVC14 - Reflection: Best Practices 6/12/2005 8:21 AM Eric Matz
I stumbled onto this session...and I'm glad I did. Very interesting stuff! I found it interesting that GetMethod(string) is no more efficient than GetMethods(). He also recommended not using the BindingFlag IgnoreCase to find methods, and he mentioned using ExactMatch, but I haven't been able to find any doco on that.

How bummed were you when the talk got cut off early? Scheduling faux pax, yes, but too bad it had to end his talk!

# re: DEVC14 - Reflection: Best Practices 6/12/2005 7:10 PM Eric Hammersley
I agree. The perf lessons he taught were invaluable and it appears as though they are little known secrets since most present appeared to be shocked. It takes talking to the person behind the scenes to know little things like GetMethod(string) does the same thing under the covers as GetMethods(). It was one of the best Cabana talks I went to the whole week.

I noticed the same thing and only assume he was talking about ExactBinding and not ExactMatch.

Post Feedback

Title:
Name:
Email: (never displayed)
Url:
Comments: 
Please add 6 and 6 and type the answer here: