I have been working very closely with csx lately and something that I noticed was that whenever we specify a variable it always used var name = "Hello World";
instead of string name = "Hello World";
. Is this due to a certain convention that developpers are expected when writting scripts or is there a more technical reason why var is used more often that specifying the actual type of the variable
Even in the scriptcs wiki (https://github.com/scriptcs/scriptcs/wiki/Writing-a-script ) which has some good content on csx , this nature of defining variables with var can be seen
So my question stands why do people always stick with var rather than specifying the variables such as string , int etc .