Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

I'm realising a dll in C# and in it there are some namespace that I use in the dll. But I want to hide this namespace from one who 'll use this dll.

This namespace must be invisible outside

How can I do this?

  • Administrators
Posted

The namespace will only be visible outside the DLL if it contains types accessible from outside the DLL, i.e. declared public.

If there are types that are only needed inside the DLL then declare them as internal rather than public, this way they behave public within the DLL but are not visible outside the DLL; if a namespace only contains private and internal types then it shouldn't be visible to a calling application.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...