I'm not sure if I'm overthinking this but in the past, I've done something like this when declaring a class:
IMyService myService = new MyService();
Jumping into myService
will take you to the IMyService
interface.
However, doing the following will (obviously) take you to MyService
.
var myService = new MyService();
Which is considered the 'correct' usage, or is this another example of "What's your favourite ice cream flavor?"?
I've looked at the most relevant question but it doesn't really answer my scenario.