My question refers to a referenced class library in .NET. Suppose I have a class library with 4 classes, solving various tasks.
In another project I reference the above-mentioned class library and use explicitly only 1 class from the whole class library.
Does the executable project use the entire class library or does the compiler extract out only the used class to avoid the 'unnecessary' overhead(unused other classes from the class library) ?
I have a big utility class library, should I divide it into more smaller class libraries or are there any optimizations when using class libraries to decrease the memory space etc.?