RobyDx Posted November 7, 2004 Posted November 7, 2004 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? Quote Come to visit
Administrators PlausiblyDamp Posted November 8, 2004 Administrators Posted November 8, 2004 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.