I have many objects (such as 10.000, more or less). Every object has3 values :
- Index (decimal, such as 0,0 <= X <= 100.000,9);
- A Latitude value;
- A Longitude value;
and I need to perform some search due to the Index value. Which will be the light approch to this? List<MyObject>? I know there are hashtable, but only for 2 values…
I read these values from a .csv file and I’ll store it on application. WebForm, .NET 4.5.
Why don’t you use a Dictionary like this:
Or use a Tuple in the dictionary: