what is VAR in Linq query -


can please explain me, var in linq, why using in linq query.

 var result = sta in db.uploaddetails               sta.keyword==issue.uploaddetails.keyword                select sta; 

what var here ??? why linq query full different sql query.

var implicitly typed local variable, type implied compiler based on value assigned.

see http://msdn.microsoft.com/en-gb/library/bb384061.aspx more info.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -