As I’m building my first UI program in C#, I am facing some troubles!
Assuming I have two Classes (Country, City) then I set each new Country object in An ArrayList created before and named CountryList as following:
public static ArrayList CountryList = new ArrayList();
Country c1 = new Country(string name); // Creating Country object
CountryList.Add(c1); // Store the Object c1 in ArrayList
As every Country has its own Cities so I can’t create an ArrayList to store all City objects together !
Then, I want like a Sub-ArrayList in ArrayList.
How about this?