Difference Between Goto Defining and Implementing Goto in Visual Studio

What is the difference between Go To Definition and Go To Implementation in Visual Studio?

Version: Visual Studio 2015 Update 1

+5
source share
1 answer

Say we have this interface:

 public interface IEmailSender { Task SendEmailAsync(string email, string subject, string message); } 

And a class that implements this interface:

 public class AuthMessageSender : IEmailSender { public Task SendEmailAsync(string email, string subject, string message) { // Plug in your email service here to send an email. return Task.FromResult(0); } } 

If you right-click on IEmailSender and select "Go to implementation", Visual Studio takes us to a class that implements this interface, namely AuthMessageSender .
If we right-click on IEmailSender while we are in the AuthMessageSender class and select Go To Definition, Visual Studio takes us to the IEmailSender definition.

+4
source

Source: https://habr.com/ru/post/1239036/


All Articles