关于C#和“C”中的属性去定义“在VS. [英] Regarding Attributes in C# and " Go to Defination" in VS

查看:91
本文介绍了关于C#和“C”中的属性去定义“在VS.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的先生,



我创建了一个包含公共方法的类。

当我在另一个中使用Class及其方法时同一解决方案中的项目

当我们在类函数调用上按f12 /Go To Definition时它会显示该函数的所有定义。如何防止它以及如何实现按下

f12仅显示功能声明而不是功能的完整定义。



请回复



谢谢和问候

Surendra Joshi

Dear Sir ,

I create a class having public method in it .
when i consume the Class and its method in another project within same solution
and when we press f12 / " Go To Definition" on Class function calling then it showing the all definition of that function . how to prevent it and how to Achieve on pressing
f12 show only function declaration in place of full definition of the function.

Please Reply

Thanks and Regards
Surendra Joshi

推荐答案

唯一的办法我知道的是不将其他程序集包含为项目,而是包含对DLL的引用。
The only way I know of is to not include the other assembly as a project, but to include a reference to the DLL instead.


这篇关于关于C#和“C”中的属性去定义“在VS.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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