> I want to check with you if the following default accessmodifier is correct.
>
[quoted text clipped - 7 lines]
>
> Is it any more that I have forgotten?

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk
Hello!
You said
> Basically, however, it's a simple rule: the default access is the most
> private you can declare. The one exception for this is that if you set
> one part of a property (i.e. either the getter or the setter) to be a
> particular access level, that is always more private than it would be
> otherwise.
but how about classes. The most private I can declare is private but the
default access is really Internal.
So have I missunderstood you in some way perhaps?
So according to your statement everything seems to have default access of
private?
//Tony
> > I want to check with you if the following default accessmodifier is correct.
> >
[quoted text clipped - 18 lines]
> particular access level, that is always more private than it would be
> otherwise.
Arne Vajhøj - 29 Feb 2008 14:21 GMT
> but how about classes. The most private I can declare is private but the
> default access is really Internal.
What would be able to use a private outer level class ?
:-)
Arne
Jon Skeet [C# MVP] - 29 Feb 2008 14:22 GMT
> Hello!
> You said
[quoted text clipped - 7 lines]
> default access is really Internal.
> So have I missunderstood you in some way perhaps?
Try declaring a non-nested class as private :)
> So according to your statement everything seems to have default access of
> private?
Nope - it's as private as you're allowed to declare it.

Signature
Jon Skeet - <skeet@pobox.com>
http://www.pobox.com/~skeet Blog: http://www.msmvps.com/jon.skeet
World class .NET training in the UK: http://iterativetraining.co.uk