Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6054725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:11:07+00:00 2026-05-23T08:11:07+00:00

I prepared some C# dll for my customer that doing some functionality. The thing

  • 0

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,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:11:07+00:00Added an answer on May 23, 2026 at 8:11 am

    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.

    • Advantage: They see none of the source you want to keep for yourself, and you don’t have to set up any sort of special hosting – just send them the DLL
    • Disadvantage: You have to do extra work to set up your code base to be fork-able. It might be a large development investment to do this sort of refactor.

    Provide a web service

    Provide a web service for the customer to access the code that they are allowed to access.

    • Advantage: They see none of the source at all.
    • Disadvantage: Depending on the code, it might be a lot of work (to get security up-to-snuff), and might be impossible (to get performance up to snuff). Or it might be easy, because maybe these aren’t big concerns. You also have to set up dedicated hosting for this to work.

    Use the InternalsVisibleTo attribute in the shared DLL

    1. Mark those methods you want to use internal
    2. Code sign your own code that uses the DLL
    3. Code sign the shared DLL
    4. Add [assembly: InternalsVisibleTo] to the shared DLL

    See: http://msdn.microsoft.com/en-us/library/system.runtime.compilerservices.internalsvisibletoattribute.aspx

    • Advantage: This is a very easy solution to code up
    • Disadvantage: The client will have access to the full source code, via Reflector. You could mitigate this by obfuscating your code, or setting up a licensing agreement that legally forbids them to reverse engineer your code.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Kindly give me some example that how we can use INSERT INTO ALL STATEMENT
I have heard that prepared statements with SQLite should improve performance. I wrote some
I'm having some trouble understanding how to use prepared statements, when you need to
I'm trying to harden some of my PHP code and use mysqli prepared statements
I want to to math operations with some kind of prepared formula that would
I am trying to make a query with a prepared statement to retrieve some
here are some quotes from the dev reference that after reading can't get my
I have a few classes that perform some MySQL queries and prepared statements. However,
I want to use some prepared selectors from AndroidSDK_HOME/platforms/API/data/res/drawable but I'm not sure what
I'm using a prepared statement to insert some values into my table. Before doing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.