Should you use type inference in C# (var) ?

Dare Obasanjo complains about Resharper 4.0's recommendation to use implicitly typed locals (i.e. var someVariable = SomeMethod(); rather than SomeType someVariable = SomeMethod();)
It is a small issue and I would probably wouldn't comment about it except I hear some of the same complaints from members in our team.


May 20, 2008
URL:http://www.drdobbs.com/windows/should-you-use-type-inference-in-c-var/228700852

Terms of Service | Privacy Statement | Copyright © 2024 UBM Tech, All rights reserved.