Use of var in linq
Posted
by mazhar
on Stack Overflow
See other posts from Stack Overflow
or by mazhar
Published on 2010-05-02T17:30:56Z
Indexed on
2010/05/02
17:58 UTC
Read the original article
Hit count: 258
LINQ
|anonymous-types
What does var
really do in the following case?
var productInfos =
from p in products
select new { p.ProductName, p.Category, Price = p.UnitPrice };
© Stack Overflow or respective owner