▲ | breadwinner 4 days ago | ||||||||||||||||||||||||||||||||||
You are right about this not being a new feature. But if you don't use it, it seems like you haven't updated your skills in a while. Besides making the code harder to read, "var" also makes your code less reliable as seen in this example: https://circles.page/567f44465c28b00bf8ed6cf9/Csharp-Type-In... | |||||||||||||||||||||||||||||||||||
▲ | recursive 4 days ago | parent [-] | ||||||||||||||||||||||||||||||||||
SomeMethod().Fire(); has the same "problem". var e = new Employee(); does not. The problem you see is independent from var. | |||||||||||||||||||||||||||||||||||
|