Ask Your Question

Revision history [back]

Hey! I think you did not break your Nested Loop so it's shows error. I share a for_each nested loop body, please follow this structure I think solve your problem. For any types of errors as well as error code 0x80072ee7 just take help from error link.

Bool break_flag = False; foreach{ foreach{ if(your condition ==true) { break_flag = true; break; } } if(break_flag== true) { break; } }

Note: For more details at: https://codereview.stackexchange.com/questions/70419/combining-two-arrays-using-nested-foreach-loops