相关疑难解决方法(0)

为什么VS 2008不在Intellisense中为String类显示扩展方法

自String实现以来IEnumerable<char>,我期待在Intellisense中看到Enumerable扩展方法,例如,在输入句点时

String s = "asdf";
s.
Run Code Online (Sandbox Code Playgroud)

我期待看到.Select<char>(...),.ToList<char>()等我当时惊讶地看到,扩展方法在串类事实的工作,他们只是不显示在IntelliSense起来.有人知道为什么吗?这可能与这个问题有关.

c# string intellisense extension-methods visual-studio-2008

13
推荐指数
1
解决办法
1424
查看次数