dig*_*All 5 linq string extension-methods .net-3.5 visual-studio-2008
大家好.
昨天我注意到EnumerableLINQ exstensions隐藏在字符串上(我的意思是隐藏在intellisense中).
我们都知道string是一个IEnumerable<char>,所以它应该自动获得Enumerable扩展,并且如果你使用它们实际上编译和工作,但是为什么.NET开发人员决定将它们隐藏在intellisense中呢?
最后,我们如何隐藏特定类型的扩展方法?
对不起我的英语不好......
编辑:我忘了说我的目标是VS 2008上的.net 3.5
EDIT2:这里有2张图片:
字符串上的智能感知:
字符串上的Intellisense http://img690.imageshack.us/img690/10/stringintelli.png
关于IEnumerable的Intellisense:
关于可枚举的智能感知http://img101.imageshack.us/img101/8828/enumintelli.png