What is a private assembly in .Net?

I understand access modifiers at the class level and below, but why would the assembly be private? I assume that by default assemblies are publicly available?

+4
source share
3 answers

Well, in the context of assemblies, private means that the assembly cannot reference another application outside the directory in which it was contained. Therefore, for a private application, it is used.

As for your question about the default being publicly available ... someone will correct me if I am wrong, but there is no public. He will be divided. Obviously, a general assembly can reference multiple applications and must reside in the GAC. Then all GAC rules will apply.

+7
source

Private private assembly is not an access modifier. This is simply the term used for assemblies specific to one application, that is, in this application directory, unlike general assemblies in the global assembly cache.

+3
source

A private assembly is an assembly, which is, in particular, an assembly that cannot be transferred outside the application during public or public access, or we can say that Global can be easily transferred outside the assembly.

0
source

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


All Articles