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
Asked
Active
Viewed 817 times
2

starblue
- 55,348
- 14
- 97
- 151

Murtaza Mandvi
- 10,708
- 23
- 74
- 109
-
Im using : System.Reflection.Assembly.LoadFrom() – Murtaza Mandvi Jan 02 '09 at 20:14
1 Answers
7
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
- 414,610
- 91
- 852
- 789
-
This holds true even if you are trying to reflect the current assembly. – StingyJack Jan 02 '09 at 21:16