This is a general question. One of my colleague was using a class I wrote and he wanted to use a dll created for the class rather than adding the class to his solution because of some efficiency problem. Is it always better to use a dll rather than writing a class?
Thanks.
Not sure I understand your question, but it sounds like you’re asking whether you should share source code or share the copiled code.
Copying source code is rarely a good idea if you’re really trying to reuse the code (rather than using it as a jump-off point for something else). Over time, separate copies can change in their own ways, and thus multiplying the effort it would take to maintain the code.
If you share the compiled library, it can be maintained on its own and fixes/changes distributed to consumers.