Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is using Assembly.Load a static reference or dynamic reference?

What are the implications and suggested scenarios to use either?

like image 419
GilliVilla Avatar asked Aug 09 '10 20:08

GilliVilla


1 Answers

Assembly.Load is a dynamic reference since you're dynamically loading an external DLL at run-time. You would consider a static reference more like when you're adding a reference to a .NET project and building the project with that reference in place.

EDIT:

From the MSDN Doc:

The compiler records static references in the assembly manifest's metadata at build time.

Hmmm, not sure about this one myself. I'll keep my answer here for now, in the hope of getting more correction comments or seeing better answers.

like image 171
Jason Evans Avatar answered Sep 29 '22 12:09

Jason Evans