I need some data type like List<int , int , int ,string , int >.
Of course I can implement , but is there something built in .net 3.5.
Thanks .
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.
No, there isn’t anything in .NET 3.5. But rather than
Tuple, have you considered implementing your own simple type which encapsulates the members you need? Usually that ends up giving more readable code thanTupleanyway – especially when you’ve got quite a lot of members, most of which have the same types.It’s a lot easier to understand:
than
It’s a little bit more work, but it needn’t be much more.