USING “VAR” NEEDLESSLY WHEN YOU KNOW THE DATA TYPE
With the introduction of MVC-style (model-view-controller) many developers turned to LINQ to retrieve a collection of values. In many instances, you don’t always know the result, and “var” helps you to avoid errors from your code if a null or a data type that you weren’t expecting is returned.lenovo support
Faisal PathanPosted May 30, 2018, 8:00 AM