Default type access modifier

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jacob N. Rohde

    #1

    Default type access modifier

    Hi guys,

    I was under the assumption that the default type access modifier for
    classes/structs is internal. But the MCAD Study Guide (from MS even) says
    public?!?! (The Dr. GUI .NET tutorial from MS's site says internal!!)

    So which source from MS do I believe? It is internal is it not?

    Thanks


  • Jon Skeet

    #2
    Re: Default type access modifier

    Jacob N. Rohde <digital_rohde@ hotmail.com> wrote:[color=blue]
    > I was under the assumption that the default type access modifier for
    > classes/structs is internal. But the MCAD Study Guide (from MS even) says
    > public?!?! (The Dr. GUI .NET tutorial from MS's site says internal!!)
    >
    > So which source from MS do I believe? It is internal is it not?[/color]

    It's internal, or private for nested classes, according to the spec. To
    test out the practice, just compile a small class and look at the
    resulting assembly with ildasm or Lutz Roeder's Reflector.

    --
    Jon Skeet - <skeet@pobox.co m>
    Pobox has been discontinued as a separate service, and all existing customers moved to the Fastmail platform.

    If replying to the group, please do not mail me too

    Comment

    Working...