Comment Re:Why implicitly typed locals? (Score 2, Insightful) 386
It looks like it would be useful when combined with LINQ type queries as in:
var q =
from c in customers
where c.City == "Seattle"
select new { c.Name, c.Age };
q would result in an implicitly typed collection of objects that contain Name and Age properties only.
Here is a good description of using both
var q =
from c in customers
where c.City == "Seattle"
select new { c.Name, c.Age };
q would result in an implicitly typed collection of objects that contain Name and Age properties only.
Here is a good description of using both