How can I project the row number onto the linq query result set.
Instead of say:
field1, field2, field3
I would like:<
List Lstemp = GetEmpList(); int Srno = 0; var columns = from t in Lstemp orderby t.Name select new { Row_number=++Srno, EmpID = t.ID, Name = t.Name, City = t.City };