Query module BadMultipleIteration
- Bad multiple iteration
- Not every enumerable sequence is repeatable, so it is dangerous to write code that can consume elements of a sequence in more than one place.
- reliability maintainability language-features external/cwe/cwe-834
The enumerable sequence is likely not to be repeatable.
An access to an enumerable sequence that potentially consumes sequence elements.
The source of an enumerable sequence (an expression used to initialise it, or the right-hand side of an assignment to it).