I have foreach loops as shown below.
foreach (InvoiceBO objInvoice in objEDIBO.InvoiceList)
// loop 1
foreach (InvoiceLineItemBO lineItem in objInvoice.LineItemDetailsList)
// loop 2
foreach(ItemChargeDetailsBO chargeDetails in lineItem.ChargeDetailsList)
// loop 3
How to come out of only 3rd foreach loop but need to continue with other 2 foreach loops?
How to come out of 2nd foreach when it is inside of 3rd foreach loop, but should continue with the 1st foreach loop?
How to come out of all 3 foreach loops but should continue in within the same procedure?
Can anyone help me in this regard?