System.Array+SZArrayEnumerator Count check boots out of foreach loop #13607
Labels
Issue-Question
ideally support can be provided via other mechanisms, but sometimes folks do open an issue to get a
Resolution-Answered
The question is answered.
The following script apparently boots out of the inner foreach loop and I can't come up with a reason why. The intent is to iterate through all variables in the current scope and do customized handling for those that are collections.
Expected behavior
List all 28 variables in scope, output similar to the below (or in other words, $cVar -eq $allVars.Count):
Actual behavior
Environment data
The text was updated successfully, but these errors were encountered: