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) {
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.
source share