void foo (TableCellCollection bar)
{
bar.Cast<TableCellCollection>().Where(a...
}
On the code above, the lambda ‘a‘ is still a TableCellCollection rather than a TableCell, can anyone point out what I’m doing wrong?
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.
Yes, you’ve told it that it should be
TableCellCollectionwith yourCastcall. If you want to cast each element toTableCell, that’s the type argument you should give: