C#/。NET如何找到从类的名称包含空间名称、空间、NET

2023-09-05 00:30:56 作者:命里缺你

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

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.