leeeroy
leeeroy

Reputation: 11446

Does Assembly.Load also load its references?

Assembly assembly = Assembly.Load("MyAssembly");

Will the above also load all the references/dependencies "MyAssembly" needs ?

Upvotes: 5

Views: 733

Answers (1)

Adam Robinson
Adam Robinson

Reputation: 185643

No; references and types are loaded on-demand as they're required. The specific rules used for locating an assembly can be found here.

Upvotes: 5

Related Questions