Hi all. Is there any collection object that will let me create a list of items which I could call by name, instead of by number? so instead of soing this:
//Create List
List<ClassType> list = new List<ClassType>();
//Assign values to list
list.add(new ClassType(params, [params, [params]]));
//Call list items
list[0].method();
list[1].method();
i do this:
//Create List
List<ClassType> list = new List<ClassType>();
//Assign values to list
list.add(new ClassType("id", [params, [params]]));
//Call list items
list["id1"].method();
list["id2"].method();
I have a query manager class which has a string for every table, in order to call just the tables i need, so, by calling the List items by id makes the association easier, since i assign an id for the table, as much as for the List item referencing the table.
Thanks