Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Save arraylist resolution
  • Loading branch information
FriedrichWeinmann committed Oct 6, 2024
commit 94a9f5a3ec757e47da37ecee7bffc859d8052d25
Binary file modified PSModuleDevelopment/bin/PSModuleDevelopment.dll
Binary file not shown.
Binary file modified PSModuleDevelopment/bin/PSModuleDevelopment.pdb
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ internal static TemplateItemBase GetTemplateItem(object Item)
TemplateItemFolder result = new TemplateItemFolder(); ;
PSObject PSItem = PSObject.AsPSObject(Item);

foreach (object child in PSItem.GetValue<ArrayList>("Children"))
foreach (object child in PSItem.GetValues("Children"))
result.Children.Add(GetTemplateItem(child));

result.Name = PSItem.GetValue<string>("Name");
result.RelativePath = PSItem.GetValue<string>("RelativePath");
result.Identifier = PSItem.GetValue<string>("Identifier");
foreach (string entry in PSItem.GetValue<ArrayList>("FileSystemParameterFlat"))
foreach (string entry in PSItem.GetValues("FileSystemParameterFlat"))
result.FileSystemParameterFlat.Add(entry);
foreach (string entry in PSItem.GetValue<ArrayList>("FileSystemParameterScript"))
foreach (string entry in PSItem.GetValues("FileSystemParameterScript"))
result.FileSystemParameterScript.Add(entry);

return result;
Expand Down