c0nverg3
07-05-2003, 01:41 PM
Pertains to C#!
Here is the question:
I need to be able to store some stuff in a sorted collection but..
when i put more than 2 'keys(?)' in the collection, it gives me the error::
No overload for method 'Add' takes '3' arguments(CS1501)
>.<!!
Any way i could use sorted collection with more than just key/values???
***EDIT***
I imagine an example would be helpful:::
For example:::: imagine sorting a list of cars:::
SortedList cars = new SortedList();
cars.Add("1973", "Model A", "black", "ford");
but....that doesnt work :(
The problem is my grandpa wants me to sort all his cars by year and i was doing it in an html table but i imagined that this would be easier...
:(
Does anyone know of another collection/way to do this??
Here is the question:
I need to be able to store some stuff in a sorted collection but..
when i put more than 2 'keys(?)' in the collection, it gives me the error::
No overload for method 'Add' takes '3' arguments(CS1501)
>.<!!
Any way i could use sorted collection with more than just key/values???
***EDIT***
I imagine an example would be helpful:::
For example:::: imagine sorting a list of cars:::
SortedList cars = new SortedList();
cars.Add("1973", "Model A", "black", "ford");
but....that doesnt work :(
The problem is my grandpa wants me to sort all his cars by year and i was doing it in an html table but i imagined that this would be easier...
:(
Does anyone know of another collection/way to do this??