Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Anyone know what is wrong with this statement
Message
De
25/01/2013 10:26:06
 
 
À
25/01/2013 10:02:04
Information générale
Forum:
ASP.NET
Catégorie:
LINQ
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Divers
Thread ID:
01564050
Message ID:
01564056
Vues:
55
J'aime (1)
>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();
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform