Jon Jagger <jo*@jaggersoft.com> wrote:
The default _accessibility_ of type members is private. Note though that the
default _visibility_ of non-nested types is internal.
The easy way to remember it (IMO) is that C# assumes you want the most
restricted access available for anything. That's great, because it
means you can cheerfully go with the defaults and get a visual reminder
(in the form of an accessibility keyword) when you *don't* want the
most private access. Making things "more private" is much less likely
to be a mistake than making things "less private", as it will be picked
up at compile time. (The exception to this rule is when reflection is
used, of course.)
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too