Nullable fields in linq

Posts   
 
    
Jed123
User
Posts: 4
Joined: 28-Oct-2010
# Posted on: 28-Oct-2010 14:02:08   

I have a linq statement with a where at the end

finalResult has to classes in it

id 1 : 2 IsPosted false : false Amt 22 : 52 PaidAmt 22 : 34

This returns an empty enumerable

var a = finalResult.Where(x =>x.IsPosted.HasValue && !x.IsPosted.Value && x.Amt > x.PaidAmt);

its only when i add these that it return nothing

x.IsPosted.HasValue && !x.IsPosted.Value

Is there any way i can get round this Please

Jed123
User
Posts: 4
Joined: 28-Oct-2010
# Posted on: 28-Oct-2010 16:04:06   

Was something else corrupting it