- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
var prevQuery = new { TimePassed = 1, ID = 1 };
prevQuery = null;
foreach (var currentQuery in db.Queries.Select(q => new { TimePassed = q.TimePassed, ID = q.ID }))
{
if (prevQuery != null)
{
//действия с prevQuery и currentQuery
}
prevQuery = currentQuery;
}
Steve_Brown 17.05.2012 10:03 # 0