8.24.2012

Difference between Assembly.LoadFrom() and Assembly.LoadFile() methods

Difference between Assembly.LoadFrom() and Assembly.LoadFile() methods
S.No
Assembly.LoadFrom()
Assembly.LoadFile()
1 LoadFrom can use either the name or the path of the assembly LoadFile will expect the path of the assembly(see the overloaded versions)
2 LoadFrom uses a probing algorithm to find the assembly.If we have two assemblies that have the same identity but different locations, we can get some unexpected behavior. But using LoadFile, we can load the desired assembly as needed.


No comments:

Post a Comment