How can I create a list which holds both string value and int value?
Can anyone help me please.Is it possible to create a list with different datatypes?
How can I create a list which holds both string value and int value?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use:
or if you are .NET Framework 4 you could use:
If either the string or integer is going to be unique to the set, you could use: