Im trying to filter a observable collection with a query like this
var IEquip = from eq in this.reportDocument.Document.InspectionData.Equipments where eq.PartData.ReportIncluded = true
orderby eq.PartData.Order ascending
select eq;
This seems to work , but when i try to iterate trough IEquip
foreach (EquipmentItem eq in IEquip)
{
....
}
all the ReportIncluded are set to true and i can see the setter on ReportIncluded being called. I have emptied the logic inside the loop with same results. All the ReportInclude are set on first iteration in the loop. What am i missing
You are using assignment operator instead of equality: