Lately I found a few tools that allow the .Net Library to be merged within the windows application.
Now the real question is how does the behavior of the library changes,
Extending question:
Classes can't be private unless they're nested.
But consider this: if you're merging assemblies A and B, then you must have already compiled them before merging. When they were compiled, the internal methods of each were inaccessible to the other. Therefore, in the merged code, there could be no method that calls internal methods of the other assembly.
Wont it be better that when merging the assembly that are internal should be made private so that that cant be used by the application they are merged in?
How would that work? If a top-level type were private, it would be accessible to no other types at all. That's why you can't define private types (unless they're nested within another type).
Suppose assembly A has classes C and D, where C is internal, and D calls some method from class C. When class C is made private (in some hypothetical version of the CTS where this is possible), class D breaks.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With