Object is simple, it's a rate of pay:
public class RateOfPay
{
public decimal Rate { get; set; }
public DateTime Start { get; set; }
public DateTime? End { get; set; }
}
and I'm trying to get it like this:
IEnumerable<T> rates = GetRates();
/*
actual collection is DevExpress XPCollection<RateOfPay>
which implements IEnumerable<T>
*/
var rate = from r in rates where r.End == null select r; // err here
It's odd because the intellisense works fine on r, but it's saying that r is an IEnumerable collection?
What am I missing?