duwamish7.0,学习

来源:互联网 发布:淘宝达达妈代购真假 编辑:程序博客网 时间:2024/05/21 10:21

在很多类前面都看到[System.ComponentModel.DesignerCategory("Code")]这么一句话,不知道作用是什么,查查csdn,虽然有,但可能是理解能力低,没有看懂什么意思,最后只能搜一下英文的网站,发现老外说事情比较浅显,通俗易懂呀!!!!

For those of you who like certain control classes to open in the code view (instead of the designer view) by default.  You can use the following attribute on your class so when you double click on it you get the code view.

  • [System.ComponentModel.DesignerCategory("Code")]

I know this has been a nicety that I now use often.

 

说白了就是在解决方案中双击一个.cs文件,以“代码”而不是以“设计器”打开这个文件。