'protected internal' keyword combination

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?am1lbGtlcnNvbg==?=

    'protected internal' keyword combination

    Does the 'protected internal' keyword combination effectively equate to
    'private'?
  • Jeroen Mostert

    #2
    Re: 'protected internal' keyword combination

    jmelkerson wrote:
    Does the 'protected internal' keyword combination effectively equate to
    'private'?
    Not at all, it means "protected or internal". In other words, either derived
    classes or classes in the same assembly can access the member (so it's more
    liberal than either "protected" or "internal") .

    --
    J.

    Comment

    • Peter Duniho

      #3
      Re: 'protected internal' keyword combination

      On Fri, 11 Jul 2008 09:35:04 -0700, jmelkerson
      <jmelkerson@dis cussions.micros oft.comwrote:
      Does the 'protected internal' keyword combination effectively equate to
      'private'?
      No.

      Comment

      • =?UTF-8?B?QXJuZSBWYWpow7hq?=

        #4
        Re: 'protected internal' keyword combination

        jmelkerson wrote:
        Does the 'protected internal' keyword combination effectively equate to
        'private'?
        All types and type members in C# have an accessibility level that controls whether they can be used from other code. Review this list of access modifiers.


        Arne

        Comment

        Working...