i make a group by and get child lists... during query i create a new obj with
var result3 = from tick in listTicks
group tick by bla bla into g
select new
{
Count = g.Count(),
Key = g.Key,
Items = g,
Timestamp = g.First().timestamp,
LastTimestamp = g[-1].First().timestamp result3 isn't still declared???
};
i want have access during runtime in the select new on values of the last created obj maybe check if the last first.Timestamp has a specific value
is it possible to have access to the last g during creating the select new { } i want to check an actual value withe one from the last g
i thought something like result3[result.count - 1].timestamp??? in the select new part...