Why is internal protected not more restrictive than internal?

后端 未结 8 2154
陌清茗
陌清茗 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:56

    Considering what Jon Skeet mentioned (and user59808's comment), wouldn't this achieve the desired result?

    protected internal bool IP { get; protected set; }

提交回复
热议问题