"Private" classes

  • Thread starter Thread starter Peter K
  • Start date Start date
P

Peter K

Hi

if I am developing a "class library" which contains some classes which
should be exposed to the outside world, and other classes which I really
would rather have "private" to my library (helper/utility classes), how do
I achieve this?

Obviously public classes can just be declared "public". But how do I make
classes available only to the other classes which are a part of my library?

Thanks,
Peter
 
Hello Peter,

consider using "assembly friendship" for this
http://msdn2.microsoft.com/en-us/library/0tke9fxk(VS.80).aspx

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo


PK> Hi
PK>
PK> if I am developing a "class library" which contains some classes
PK> which should be exposed to the outside world, and other classes
PK> which I really would rather have "private" to my library
PK> (helper/utility classes), how do I achieve this?
PK>
PK> Obviously public classes can just be declared "public". But how do I
PK> make classes available only to the other classes which are a part of
PK> my library?
PK>
PK> Thanks,
PK> Peter
 
"internal" or nothing at all (internal is the default)

Yeah thanks - I did track that down myself, and tried to "delete" my
question, but you were already on the ball!
 
Back
Top