Query using Generics

Posted by Gayathri under C# on 8/21/2013 | Points: 10 | Views : 1380 | Status : [Member] | Replies : 1
I have a requirement like this.

Country list State
---------------- ------------
India KarNtaka
Tamilnadu
Andhra

US Northcarolina
California

I need to store the country list and state list in generic collection. It is not possible to store the duplicated country code. kindly let me know how to handle this in generics. so that if i enter india it should print list of states in india.




Responses

Posted by: Jayakumars on: 8/22/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi
refer this url

http://stackoverflow.com/questions/2363462/custom-generic-list-class-contract-deserialize-error
http://social.msdn.microsoft.com/Forums/vstudio/en-US/8fb96624-6c3b-40e4-a727-45803ab494c7/custom-generic-list-class-contract


Mark as Answer if its helpful to you

Kumaraspcode2009@gmail.com

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

Login to post response