Open sandboxFocus

Method LoadAssemblyFromFile

LoadAssemblyFromFile(string)

Loads an Assembly given its file name.

Declaration
Assembly LoadAssemblyFromFile(string fileName)
Parameters
Type Name Description
string fileName

The full path of the assembly.

Returns
Type Description
Assembly

The Assembly.

Remarks

Use this method instead of LoadFile(string).

note

You cannot load two assemblies with different paths and the same identity (strong name) into PostSharp.