I am working on a CSLA project right now and I am wondering if there is a data-structure similar to tuple that is Mobile. I’m looking to use a MobileList<Tuple<int, string>> but I cannot because the Tuple is not Mobile.
Any suggestions?
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.
If you only need two parameters you could use KeyValuePair
UPDATE:
So as your comment implies, kvp cannot be serialized. You could use the approach from this question if you can live with adding a new type: Is there a serializable generic Key/Value pair class in .NET?