// An explicit load request based on a friendly name.
Assembly asm = Assembly.Load("CarLibrary");
In either case, the CLR extracts the friendly name of the assembly and begins probing the
client’s application directory for a file named CarLibrary.dll. If this file cannot be located, an
attempt is made to locate an executable assembly based on the same friendly name (CarLibrary.
exe). If neither of these files can be located in the application directory, the runtime gives up and
throws a FileNotFoundException exception at runtime.
Do'stlaringiz bilan baham: |