none
Access Modifiers (C# Programming Guide) Error RRS feed

  • General discussion

  • The page "Access Modifiers (C# Programming Guide)" has a mistake

    It says:

    "By default, classes and structs are declared as internal unless the public keyword is added to the class definition"

    and below

    "Unlike classes, interfaces default to internal access."

     http://msdn.microsoft.com/en-us/library/ms173121(VS.80).aspx

    Obviously, "unlike" should not be there.

    According to 3.5.1 of C# Language Specification 1.2,

    "Types declared in compilation units or namespaces can have public or internal declared accessibility and default to internal declared accessibility."

    Friday, January 30, 2009 1:22 AM