Search a value from array

Posted by .Netlearner under ASP.NET on 12/22/2012 | Points: 10 | Views : 748 | Status : [Member] | Replies : 2
Hello All,

I have a scenario in which i have color names and its color code i want color code for a particular color.How this can be acheived ?

In arrays we dont have an option to save as key--> value pair ?

Can anyone please guide me

thanks in advance




Responses

Posted by: Pavanandey on: 12/24/2012 [Member] Bronze | Points: 25

Up
0
Down
use hashtable to slove your problem

Thanks
Pavan Kumar
Mark Answer if this fits the need

.Netlearner, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Pavanandey on: 12/24/2012 [Member] Bronze | Points: 25

Up
0
Down
you can also use dictinoary

Thanks
Pavan Kumar
Mark Answer if this fits the need

.Netlearner, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response