File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
library/PSModuleDevelopment/PSModuleDevelopment/Template Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ internal static TemplateItemBase GetTemplateItem(object Item)
22
22
TemplateItemFolder result = new TemplateItemFolder ( ) ; ;
23
23
PSObject PSItem = PSObject . AsPSObject ( Item ) ;
24
24
25
- foreach ( object child in PSItem . GetValue < ArrayList > ( "Children" ) )
25
+ foreach ( object child in PSItem . GetValues ( "Children" ) )
26
26
result . Children . Add ( GetTemplateItem ( child ) ) ;
27
27
28
28
result . Name = PSItem . GetValue < string > ( "Name" ) ;
29
29
result . RelativePath = PSItem . GetValue < string > ( "RelativePath" ) ;
30
30
result . Identifier = PSItem . GetValue < string > ( "Identifier" ) ;
31
- foreach ( string entry in PSItem . GetValue < ArrayList > ( "FileSystemParameterFlat" ) )
31
+ foreach ( string entry in PSItem . GetValues ( "FileSystemParameterFlat" ) )
32
32
result . FileSystemParameterFlat . Add ( entry ) ;
33
- foreach ( string entry in PSItem . GetValue < ArrayList > ( "FileSystemParameterScript" ) )
33
+ foreach ( string entry in PSItem . GetValues ( "FileSystemParameterScript" ) )
34
34
result . FileSystemParameterScript . Add ( entry ) ;
35
35
36
36
return result ;
You can’t perform that action at this time.
0 commit comments