C#/。NET如何找到从类的名称包含空间 [英] C#/.NET How do I find the containing namespace from a class name

查看:123
本文介绍了C#/。NET如何找到从类的名称包含空间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我经常发现自己记住,我想用一个类的名字,但不记得了包含命名空间。 除了在网上搜索,我不知道一个好的方法存在看这件事。

I often find myself remembering the name of a class that I want to use, but not remembering the containing namespace. Apart from searching the web, i wonder if a good method exists for looking this up.

推荐答案

我觉得如果你preSS ALT,SHIFT和F10在Visual Studio中 - 智能感知将下拉选项为您添加类的名称空间你刚才输入的内容。

I think if you press ALT, SHIFT and F10 in Visual Studio - intellisense will drop down an option for you to add the name space of the class you have just typed.

这篇关于C#/。NET如何找到从类的名称包含空间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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