i am confusing which one i have to use in following scenario please suggest me which one is best.
scenario:
i want to store 300 values in this situation i am using array like below.
string[] array=new string[62000] ;
array[1]="aaa";
array[8]="bbb";
arrary[90]="ccc";
array[61000]="ddd";
like this i used here problem is actually i stored 300 values that values index's should be 1 to 62000 between .

VulpesRank #55 · 29.2K reputationPosted Jul 19, 2013, 2:10 AM EDT
It sounds like a Dictionary is what you need (for example a key of "ddd" would correspond to the integer 61000) but, TBH, I don't really understand what you're trying to do.
Naidu10 reputationPosted Jul 19, 2013, 2:28 AM EDT
VulpesRank #55 · 29.2K reputationPosted Jul 19, 2013, 2:36 AM EDT
Do you mean that you want to deliberately duplicate values?
For example, all values between array[1] and array[7] inclusive will be "aaa"?
Vishwas Kadamannaya111 reputationPosted Jul 19, 2013, 2:41 AM EDT