I currently have a class that contains 3 dictionaries, each of which contains lists of the same type in each dictionary, but different types in dictionaries, such as:
Dictionary1<string, List<int>> ... Dictionary2<string, List<double>>... Dictionary3<string, List<DateTime>>...
Is there a way to use another collection that can contain all lists so that I can iterate through the list collection? The possibility of iteration is the only requirement for such collection, sorting, and other operations are not required.
I want to have access to the list directly through a string or another identifier and access members of the list. The type of security is not a requirement, but in return I donβt want to throw something, the speed here is absolutely important.
So, when the calculations are performed on the members of the list, knowledge of the exact type is assumed, for example, "double lastValue = MasterCollection [" List1 "] Last ();", while it is assumed that List1 is a list of type double.
Can this be done? Sorry that I sometimes use the wrong or incomplete terminology. I am not a trained programmer or developer.
Thanks Matt
Matt source share