Hi all
I have a wrapper to a driver and it is being used by multiple applications.
Can somebody advise me what would be a standard design for a C# wrapper a .cs file or a shared dll.
Thanks in advance
Hi all
I have a wrapper to a driver and it is being used by multiple applications.
Can somebody advise me what would be a standard design for a C# wrapper a .cs file or a shared dll.
Thanks in advance
Standard Design for a C# Wrapper to Native functions
lars corneliussen
Both ways have advantages and disadvantages. If you’re planning to share library, you can ship if with, say, new version of a driver so your applications can be updated without any changes. You might save some space as well. However, you would need to strong name sign that library and GAC it. Also it would expose your driver as its all public.
Sharing source file makes it harder to update, but it less maintenance as you don’t need to handle DLL.
So the answer is: whatever’s convenient for you.