Imagine that there is a certain class library .dll written in C #, in which there are 100,500 classes and the same methods / fields in each and it weighs generally cosmic numbers. Imagine that there is a second program - a console C # application that wants to use this dll. dll is connected to the project simply through the link. Further we will provide that in this application there is the following code:
TestClass a = new TestClass(); Console.WriteLine(a.add(10, 10)); Console.WriteLine(a.sub(20, 15)); Where TestClass is a class from dll.
Question: how will import from dll? When the process starts, will it take and load this whole huge library into my process? Or will only the classes I use be loaded? Or will it only load the necessary methods?