What advantages does using var have over the explicit type in C#? [duplicate]

The point of var is to allow anonymous types, without it they would not be possible and that is the reason it exists. All other uses I consider to be lazy coding.

Leave a Comment