c# - Find a position in an anonymous List -
got next query:
[i simplied query example]
var query = (from u in users select new { id = u.id,name = u.name, surname = u.surname}).tolist();
how can find sec row in query?
thanking in advance
since query list can utilize index accessors, 0 based.
so, sec row be:
query[1]
ensure though number of records returned 2 or higher or exception.
c#
No comments:
Post a Comment