Search   Feed   Browse   Add
Feed items 1 - 2 of 2 for September 2003

Suzanne Cook's .NET CLR Notes

Common Language Runtime Developer

LoadFile vs. LoadFrom - September 20, 2003

Be careful - these aren't the same thing. LoadFrom() goes through Fusion and can be redirected to another assembly at a different path but with that same identity if one is already loaded in the LoadFrom context. LoadFile() doesn't bind through Fusion at all - the loader just goes ahead and loads exactly what the caller requested. It doesn't use either the Load or the LoadFrom context. So, LoadFrom() usually gives you what you asked for, but not necessarily. LoadFile() is for those who...
http://blogs.msdn.com/suzcook/archive/2003/09/19/loadfile-vs-loadfrom.aspx

LoadFrom's Second Bind - September 17, 2003

Pre-v2, when you load an assembly by path through Fusion (LoadFrom(), ExecuteAssembly(), etc.), it can actually cause two binds, not just one. The first bind loads the file at the given path. If that is successful, another bind is done with the display name of that assembly to see if it's available in the Load context. If it's not available, the LoadFrom() call is still successful - we throw away the results of the second bind. If it is available, we check the path returned from the first bind..
http://blogs.msdn.com/suzcook/archive/2003/09/16/loadfrom-s-second-bind.aspx
Available Archives
- July (1 item)
- August (2 items)
- September (2 items)
- November (1 item)
- December (1 item)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact