I want to remove loops by using linq query. Can anyone help me to do this.
for (var a in this.OrderItem) {
for (var b in this.items) {
if (this.OrderItem[a].ItemId == this.items[b].Id) {
this.items[b].IsOrderItem = true;
this.items[b].FinalQuantity = this.OrderItem[a].Quantity;
this.items[b].OrderItem = this.OrderItem[a].OrderSubItems;
this.items[b].OrderItemId = this.OrderItem[a].Id;
break;
}
}
}

Madan ShekarRank #428 · 5.9K reputationPosted Dec 5, 2018, 7:05 PM EST
https://code.msdn.microsoft.com/LINQ-Set-Operators-374f34fe
Thanks
Muthu KumarRank #935 · 2.2K reputationPosted Mar 5, 2019, 6:36 PM EST
Please try following way,
Laxmidhar SahooRank #383 · 6.6K reputationPosted Mar 30, 2019, 9:04 PM EDT