C# - Do you use "var"?
- by Paul Stovell
C# 3.0 introduces implicitly typed variables, aka the "var" keyword.
var daysInAWeek = 7;
var paul = FindPerson("Paul");
var result = null as IPerson;
Others have asked about what it does or what the problems with it are:
http://stackoverflow.com/questions/527685/anonymous-types-vs-local-variables-when-should-one-be-used…