How can I get next element of element to which I have reference in some collection e.g. List<T> ?
I am not talking about any loops, etc. I want get just one next (or previous) element
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.
It’s not the most performant, but it should work. You can even make it an extension method.
And you use it like this: