As .net framework 4.0 supports Tuples. Tuple Class is not available in 3.5 But Is there any way i can create my own class MyTuple in .net 3.5?
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.
Yes. You can create your own tuples. There isn’t anything hard about it. Here’s an example with a
Tuple<T1, T2>andTuple<T1, T2, T3>.And here is the static factory class for creating
Tupleinstances:Now you can write the following:
Cheers