I can’t search in item which foreach for find values ​that are related [closed]

A class that is related to the second class and the second class is related to the third class. Now, by using the ID of the first class, in the second class, let’s get the IDs that are related to the first class, what if we see that these IDs are related to the third class? I need foreach for check, help me

I cant use foreach for search in item and return values

  • 3

    Please show what you have tried, and say what is not working. Stackoverflow is not a code writing service, nor a homework service. Perhaps you need to consult your teacher?

    – 

  • Could you edit the question and include the definition of the three classes? There is no need to include all the class members. We need to see only the members that are essential for demonstrating the problem.

    – 




Leave a Comment