在某些情况下智能感知不完整 [英] IntelliSense incomplete in some cases
问题描述
可能还有其他情况,但这是我见过的第一个.
There may be other cases, but this is the first one that I've seen.
System.Resources.ResourceManager
缺少智能感知的一部分.例如,缺少 GetString
.键入 GetString(
不会提供 IntelliSense.将鼠标悬停在它上面会显示信息.
System.Resources.ResourceManager
is missing a part of the IntelliSense. For example, GetString
is missing. Typing GetString(
won't give IntelliSense. Hovering over it shows information.
我尝试过的事情:
- 重启 Visual Studio
- 重置所有环境设置
- 删除
%AppData%\Roaming\Microsoft\VisualStudio\11.0\ReflectedSchemas
的内容 - 执行
devenv/resetuserdata
还有什么我可以尝试的吗?
Is there anything else I can try?
推荐答案
这不是错误,IntelliSense 会显示您请求的内容.
This is not a bug and IntelliSense displays what you requested.
您需要创建 ResourceManager 的实例来获取 GetString 或 GetObject 等方法,因为这些是实例方法.
You need to create an instance of the ResourceManager to get the methods like GetString or GetObject, cause these are instance methods.
当前您访问类 ResourceManager
,因此 IntelliSense 仅列出静态成员.
Currently you access the class ResourceManager
and therefore IntelliSense only lists the static members.
这篇关于在某些情况下智能感知不完整的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!