▲ | recursive 4 days ago | |||||||
Microsoft recommendation is reasonable. I don't think var should be used as much Rider recommends. But var is perfectly fine in itself. The problem you illustrated occurs independently from var. You assert that one "typically" writes code a certain way but I've seen plenty of both. Further, sometimes you need var. Sometimes the target type can't be spelled like with anonymous types. | ||||||||
▲ | breadwinner 4 days ago | parent [-] | |||||||
You are contradicting yourself... var is perfectly fine... but it shouldn't be used as much... | ||||||||
|