Is there a way within Visual Studio to easily get qualified type names?

喜你入骨 提交于 2019-12-08 15:47:17

问题


I'm looking for an extension/process for getting an object's assembly qualified type name within Visual Studio. I'm aware that you can write a quick console app to output this but find it to be a clumsy process. Ideally, I'd like the ability to right-click on a type name, and have the option to copy it's assembly qualified name to the clipboard in order to paste into my DI Container's configuration file.


回答1:


In newer versions of ReSharper you can use the ReSharper/Edit/Copy Fully-qualified name/ Source browser URI to clipboard menu option.




回答2:


Assembly Information is probably close to what you are looking for. It seems to only show information on your references but should't be a problem if you have another project in your solution referencing the assembly.

Good idea for a plug-in if it's possible.




回答3:


You can use Object Browser to do that.
For example, if you want to copy full qualified name of WriteLine method, you can search it in Object Browser.
Then you can copy its full qualified name in the result list - System.Console.WriteLine().




回答4:


Try using Productivity Power Tools. Its free and provides a whole slew of other great extension for Visual Studio.

http://visualstudiogallery.msdn.microsoft.com/d0d33361-18e2-46c0-8ff2-4adea1e34fef



来源:https://stackoverflow.com/questions/8566628/is-there-a-way-within-visual-studio-to-easily-get-qualified-type-names

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!