- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我不清楚 Accessibility
值 ProtectedAndInternal
和 ProtectedOrInternal
之间的区别。
我找到了一份说明 ProtectedOrInternal
映射到源代码构造 protected internal 的引用。
但是——假设这是正确的——某些东西在和内部都受到保护意味着什么?
最佳答案
ProtectedOrInternal
对应protected internal
:
The
protected internal
keyword combination is a member access modifier. A protected internal member is accessible from the current assembly or from types that are derived from the containing class. For a comparison ofprotected internal
with the other access modifiers, see Accessibility Levels.
ProtectedAndInternal
对应private protected
:
The
private protected
keyword combination is a member access modifier. A private protected member is accessible by types derived from the containing class, but only within its containing assembly. For a comparison ofprivate protected
with the other access modifiers, see Accessibility Levels.
关于roslyn - C# 代码分析 ProtectedAndInternal 与 ProtectedOrInternal,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63258065/
我不清楚 Accessibility 值 ProtectedAndInternal 和 ProtectedOrInternal 之间的区别。 我找到了一份说明 ProtectedOrInternal
我是一名优秀的程序员,十分优秀!