Why is internal protected not more restrictive than internal?

后端 未结 8 2152
陌清茗
陌清茗 2020-12-08 04:33

I\'d like to create an internal auto-property:

internal bool IP { get; protected internal set; }

I thought it would be possible to make the

8条回答
  •  臣服心动
    2020-12-08 04:55

    protected internal is less restrictive than either protected or internal because it allows both its subclasses (protected) and anything in the same assembly (internal) to access something.

提交回复
热议问题