I want to declare a tuple that contains a boolean and a list of longs.
This is what I have but it’s underlined red on the last List:
Tuple<bool, List<long>> TheTuple = new Tuple<bool,List<long>>(false, List<long>);
What am I missing?
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.
Note that it will set the
Item2property of the tuple to null, which is perhaps not what you want. If you want to set it to an actualList<long>, usenew List<long>():