Shortly,
(不久,)
The Browsable()
and EditorBrowsable()
works with members.
(EditorBrowsable()
Browsable()
和EditorBrowsable()
与成员一起使用。)
not class itself. (不上课本身。)
So, I need to hide the accessibility of class that I can't make it internal.
(因此,我需要隐藏无法将其设置为内部的类的可访问性。)
Just hide it from code. (只需将其从代码中隐藏即可。)
An internal
access modifier will make it only accessible in assembly the class created.
(internal
访问修饰符将使其只能在汇编中访问创建的类。)
Why i need that?
(为什么我需要那?)
I need some people can't access these classes.
(我需要有些人无法访问这些课程。)
only I need writing it manually without showing in IntelliSense. (只有我需要手动编写它,而无需在IntelliSense中显示。)
Updated
(更新)
I mean all kind of types [ classes, structs, enums ].
(我的意思是所有类型的[类,结构,枚举]。)
When user or developer write for example Employee class it will not showing in intellisense.
(当用户或开发人员编写例如Employee类时,它不会以智能提示显示。)
but its accessible and can be instantiated normally. (但可以访问,并且可以正常实例化。)
ask by deveton translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…