File tree Expand file tree Collapse file tree
library/PSModuleDevelopment/PSModuleDevelopment/Template Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ internal static TemplateItemBase GetTemplateItem(object Item)
2222 TemplateItemFolder result = new TemplateItemFolder ( ) ; ;
2323 PSObject PSItem = PSObject . AsPSObject ( Item ) ;
2424
25- foreach ( object child in PSItem . GetValue < ArrayList > ( "Children" ) )
25+ foreach ( object child in PSItem . GetValues ( "Children" ) )
2626 result . Children . Add ( GetTemplateItem ( child ) ) ;
2727
2828 result . Name = PSItem . GetValue < string > ( "Name" ) ;
2929 result . RelativePath = PSItem . GetValue < string > ( "RelativePath" ) ;
3030 result . Identifier = PSItem . GetValue < string > ( "Identifier" ) ;
31- foreach ( string entry in PSItem . GetValue < ArrayList > ( "FileSystemParameterFlat" ) )
31+ foreach ( string entry in PSItem . GetValues ( "FileSystemParameterFlat" ) )
3232 result . FileSystemParameterFlat . Add ( entry ) ;
33- foreach ( string entry in PSItem . GetValue < ArrayList > ( "FileSystemParameterScript" ) )
33+ foreach ( string entry in PSItem . GetValues ( "FileSystemParameterScript" ) )
3434 result . FileSystemParameterScript . Add ( entry ) ;
3535
3636 return result ;
You can’t perform that action at this time.
0 commit comments