>Hi All.
>
>Does anyone see something obviously wrong with this statement?
>
>
>lstCurrentTransferees = (List<CommonInternal>)lstTransferees.Where(x => x.EECreationDate >= dateRanges[i].Start && x.EECreationDate <= dateRanges[i].End).ToList();
>
>
>When I try to debug it, I get no error - the debugger just goes off into la-la land and never comes back.
>
>lstTransferees has many list items and dateRanges[i].Start = {11/1/2012 12:00:00 AM} and dateRanges[i].End = {1/25/2013 12:00:00 AM} and an example of EECreationDate looks like this: {6/24/2010 9:33:36 AM}
Odd that it just seems to hang ? Is it possibly a captured variable problem ?
Maybe to test try:
var s = dateRanges[i].Start; var e = dateRanges[i].End;
var result = lstTransferees.Where(x => x.EECreationDate >= s && x.EECreationDate <= e).ToList();