Visual Studio或任何附加组件是否在接口注入的混凝土类型上提供Intellisense?
在.NET核心中的依赖注入后,我经常发现自己跳到了启动。CS类,以找出在其他一些类中将哪种具体类型注入了界面依赖性。
因此,如果我有一个人的课程:
public class Person
{
public Person(ICellPhone phone){}
}
如果有一个工具可以让我单击构造函数中的合同,按一些键,然后自动导航到当前混凝土实现将实现ICELLPHONE的功能,那将是整洁的。
这样的东西已经存在吗?
With dependency injection in .NET core, I often find myself jumping to the startup.cs class to figure out what concrete type is being injected as an interface dependency in some other class.
So if I have a Person class:
public class Person
{
public Person(ICellPhone phone){}
}
It would be neat if there was a tool that would let me click the contract in the constructor, press some key, and then auto navigate to what the current concrete implementation would be fulfilling ICellPhone.
Does anything like this already exist?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论