.Net Application Memory Management

It may be a very naive question, but I wondered how this material works: Suppose we have 10 projects in Visual Studio, and 5 of them have links to an external DLL (say, Ext.dll) using a relative path.

Now that my application is deployed on a client computer, will Ext.dll load 5 times in memory? Or is it just loading once and will be used by other link projects?

+4
source share
2 answers

The assembly will load only once in memory.

CLR, AppDomain, AppDomain, .

, AppDomain, .

, . CLR . , , . , CLR .


, , :

var loadedAssemblies = AppDomain.CurrentDomain.GetAssemblies();
+5

Clr .

: Clr .

Clr #. .

+3

Source: https://habr.com/ru/post/1526403/


All Articles