MarioAtTrimble

Results comments of MarioAtTrimble

If you really are going to argue this, please give us another option, something like 'Use var only when type is present on line'

The type is nowhere on this line: `var listOfStrings = myString.Split(',').ToList()` I could just as easily create my own poorly named extension method called ToCollection() that returned List: `var listOfStrings...

> The rules are that the type 'Foo' is apparent if we see: > 1. new Foo > 2. new Foo[] > 3. (Foo)... > 4. ... as Foo >...

I also agree with you, the rules for what is 'apparent' would be great to have somewhere.

IMO, var is fine in each since the actual type is on the line once already. That's the only rule I have - don't repeat the actual type more than...

Why is this closed and doesn't appear to be targeted for VS 2017?

We are getting this issue from time to time on our build server, too. It's not consistent and sometimes it works just fine. We didn't see before when we were...