On Mon, 13 Oct 2008 20:14:30 -0700, <ab****@gmail.comwrote:
On Oct 13, 10:25 pm, Arne Vajhøj <a...@vajhoej.dkwrote:
>puzzlecracker wrote:
is there a way to create a library (assembly/dll) where I can only
export few class? I don't want client to use or know about other
internal classes in the assembly.
public vs internal ?
Arne
That could cause a problem. Say my client classes reference util
classes, that I don't want to export outside, making those internal
would break my implementation.
First of all, are you the original poster? If so, please don't switch
back and forth between identities. It's hard enough to keep track of
people who use pseudonyms, without them using _multiple_ pseudonyms so
that we never know who it is we're talking to or responding to.
Second, surely Arne's talking about classes in your library, not the
client. Assuming your client isn't itself a library, accessibility of
things in the client have nothing to do with what's "exported outside",
and even if it is, it only exports what it itself declares. Just because
it references something, that doesn't cause that referenced thing to be
exposed.
There's nothing about your reply to Arne's post that makes me think that
his own response wasn't relevant or helpful. Your reply seems more like a
non sequitur to me.
As is usually the case, if you would post a concise-but-complete code
sample that illustrates whatever accessibility issue you're dealing with,
it would be a lot more likely that someone could provide some specific
advice that addresses your need.
Pete