c# - Executable vs wrapper class -


i working on project using asp.net , c# , need pull in wkhtmltopdf. realize there have been several wrapper classes written simplify calls dlls using c#. there reason why should not invoke executable directly? there performance or security gain using wrapper library?

although, specific need use wkhtmltopdf, have had same question in past when using libraries imagemagick well.

it's matter of preference. using wrapper classes mentioned, work implementing components may not familiar reduced, thereby freeing valuable time concentrate on aspects of application perhaps can make strongest value-add, such overall application architecture , design, or perhaps application's business logic.

if choose write code yourself, may find you're less productive developer competition.

and, @uwekeim points out in comment, performance may factor well. if wrapper code not perform needs, may need bypass , go straight component/code library you're calling.

it's important strike balance between use of code others have written, versus own. important factors things such as, how 3rd party code written, how supported, how performs, etc. choose wisely!


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -