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.
More Related Contents:
- Use of var keyword in C#
- Will using ‘var’ affect performance?
- Why does ReSharper want to use ‘var’ for everything? [duplicate]
- VB.NET equivalent to C# var keyword [duplicate]
- How to create LINQ Query from string?
- Using var outside of a method
- What is the difference between String and string in C#?
- Public String becoming null after being set [closed]
- how to find an specific character in a string [closed]
- How to use Global Variables in C#?
- Entity Framework 4 Delete Object from entity collection
- Splitting a string / number every Nth Character / Number?
- How to Read XML in .NET?
- ReSharper WPF error: “Cannot resolve symbol “MyVariable” due to unknown DataContext”
- Detect WebBrowser complete page loading
- How can I read user input from the console?
- Handling exceptions, is this a good way?
- Differences between IQueryable, List, IEnumerator?
- What is the use for Task.FromResult in C#
- Using DateTime in a SqlParameter for Stored Procedure, format error
- How to convert an expression tree to a partial SQL query?
- Why does System.MidpointRounding.AwayFromZero not round up in this instance?
- Could not load file or assembly Microsoft.Extensions.DependencyInjection.Abstractions, Version=1.1.0.0
- How to change route to username after logged in?
- FPS camera with y-axis limit to certain angle
- Access form component from another class
- Why doesn’t C# support local static variables like C does? [closed]
- Can’t assign to delegate an anonymous method with less specific parameter type
- Resolving Generic Interface with Autofac
- Retrieve process network usage