c# - Managing class libraries in .NET -


my question refers referenced class library in .net. suppose have class library 4 classes, solving various tasks.

in project reference above-mentioned class library , use explicitly 1 class whole class library.

does executable project use entire class library or compiler extract out used class avoid 'unnecessary' overhead(unused other classes class library) ?

i have big utility class library, should divide more smaller class libraries or there optimizations when using class libraries decrease memory space etc.?

does executable project use entire class library or compiler extract out used class avoid 'unnecessary' overhead?

class libraries compile dlls (dynamically linked libraries). answer question, no, compiler not "extract" out used classes library. clr load class library when needed, won't load memory isn't required during runtime.

i have big utility class library, should divide more smaller class libraries or there optimizations when using class libraries decrease memory space etc.?

opinion based, split down utilities activity , reference dependency, way wont need release whole library when build application.


Comments