I prepared some C# dll for my customer that doing some functionality.
The thing is that I use also same dll.
How can I make some methods available to him and all methods available for me.
Thanks,
I prepared some C# dll for my customer that doing some functionality. The thing
Share
Use a shared code base
Simply compile two projects. One contains the source for the DLL you are providing to the customer, and the other contains all the source, which you keep for yourself.
Provide a web service
Provide a web service for the customer to access the code that they are allowed to access.
Use the
InternalsVisibleToattribute in the shared DLLinternal[assembly: InternalsVisibleTo]to the shared DLLSee: http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.internalsvisibletoattribute.aspx