4 ms·
This is for local variables, though. You can use var as the return type of a method. If your method bodies are so large that you need to be coding to interface
by wtetzner 11y ago
This is for local variables, though. You can use var as the return type of a method.
If your method bodies are so large that you need to be coding to interfaces within them (as opposed to just setting the return type of your method to the interface), the you've got other problems.