Skip to content

Commit 94a9f5a

Browse files
Save arraylist resolution
1 parent d09b612 commit 94a9f5a

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
0 Bytes
Binary file not shown.
0 Bytes
Binary file not shown.

library/PSModuleDevelopment/PSModuleDevelopment/Template/TemplateHost.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)