在某些情况下智能感知不完整 [英] IntelliSense incomplete in some cases

查看:13
本文介绍了在某些情况下智能感知不完整的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可能还有其他情况,但这是我见过的第一个.

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屋!

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