views:

319

answers:

1

I'm loading an assembly at runtime and the question that arises everytime I call the code is that should I be checking if that particular assembly has loaded already? or does .Net take care of this and one assembly (same version) can only be loaded once? The basic question here is do i have to iterate through a list of loaded assemblies and see if my assembly was already loaded or not? Thanks

+6  A: 

To quote MSDN: "If an assembly with the same identity is already loaded, LoadFrom returns the loaded assembly even if a different path was specified. "

Mehrdad Afshari
This holds true even if you are trying to reflect the current assembly.
StingyJack