Skip to content

Commit 3eb74b9

Browse files
committed
Update
1 parent c823b7a commit 3eb74b9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation/Generate-FunctionCommand.ps1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ function Get-InvokeMethodCmdletCode
167167

168168
# 2. Iterate through Param List
169169
$methodParamList = $MethodInfo.GetParameters();
170-
$paramNameList = @();
171-
$paramLocalNameList = @();
170+
[System.Collections.ArrayList]$paramNameList = @();
171+
[System.Collections.ArrayList]$paramLocalNameList = @();
172172
[System.Collections.ArrayList]$pruned_params = @();
173173
foreach ($methodParam in $methodParamList)
174174
{
@@ -195,7 +195,7 @@ function Get-InvokeMethodCmdletCode
195195
}
196196
}
197197

198-
$invoke_params_join_str = [string]::Join(', ', $paramLocalNameList);
198+
$invoke_params_join_str = [string]::Join(', ', $paramLocalNameList.ToArray());
199199

200200
# 2.1 Dynamic Parameter Assignment
201201
$dynamic_param_assignment_code_lines = @();

0 commit comments

Comments
 (0)