
As shown in the above image, when I press on the ResultsView, it opens a new list which contains [0] and [1]. However, in my code, when I write sessionQueryable[0] it says syntax error.
How can I access what’s in the ResultsView?
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.
The debugger is showing you the internal structure behind the
IQueryableinterface, but you should not program against that, though, since there is no guarantee that you’ll get the same structure each time.IQueryablelists cannot be accessed by index using[]. You’d need to turn it into anIListto access it by index:Or query the sessions by some other method using the
IQueryableinterface, for exampleSkip()andTake():