从Intellisense隐藏(抽象)类 [英] Hide (abstract) classes from Intellisense

查看:69
本文介绍了从Intellisense隐藏(抽象)类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有几个抽象类是要对Intelisence隐藏的类库,该怎么做?

I have several abstract classes is class library which would like to hide from Intelisence, how to do that?

推荐答案

在类声明之前使用属性:

Use the attributes, before the class declaration:

[Browsable(false)]
[EditorBrowsable(EditorBrowsableState.Never)]

编辑::如果类代码在您的解决方案中,则它将永远不会隐藏:

edit: if the class code is in your solution, it won't ever hide:

http://social.msdn.microsoft.com / forums / zh-CN / csharpide / thread / c2d2bd5a-97a5-4886-846d-759173476631 /

这篇关于从Intellisense隐藏(抽象)类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆