I am using C #. In many cases, I write code that can benefit from a very simple class / method, which is in an “irrelevant” dll. For example, I am writing some kind of algorithm without an interface, but it can benefit from the Point class in System.Drawing, or I need some kind of xml manipulation method from System.Web, although I am writing a console application (these are just examples).
Besides the “smell of code” - is there a performance limitation for importing a large assembly for a small part of the functionality?
source share