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 .
Vishwas KadamannayaPosted Jul 19, 2013, 6:41 AM
VulpesPosted Jul 19, 2013, 6:36 AM
Do you mean that you want to deliberately duplicate values?
For example, all values between array[1] and array[7] inclusive will be "aaa"?
NaiduPosted Jul 19, 2013, 6:28 AM
VulpesPosted Jul 19, 2013, 6:10 AM
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.