I've recently started a new job working with a project written in mostly C#. There are several instances which I've noticed in the project where variables are declared with the type var. An example:
var myObject = new ChartObject();
To me this looks like loose typing (like in Javascript). If this is the case, why would I pick this over explicit typing? Is this all a matter of coding style and preference? Am I reading too much into this?
Thanks!
This post has been edited by Rhokk: 23 August 2011 - 07:19 PM

New Topic/Question
Reply




MultiQuote












|