I just learned of the Nuget package Loop Helper for WebMatrix. Unfortunately I can’t seem to find any documentation or project site. Does anyone have any information on how to use this or where the project site is?
Share
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.
I think the supplied sample pretty much covers everything you need to know, the loop tracker isn’t as mysterious as you might think.
All
Loop.OuterLoopis doing is referencing the parent loop if you’re in one and it’s being tracked, for example:Under the bonnet the helper is just wrapping access to your arrays, lists and collections and tracking forward movement through these items with an incrementing internal index value.
Update:
Here’s an example using three nested loops with the very inner loop referencing the most outer loop (
outerThings):