File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/ServiceManagement/Compute/Commands.ServiceManagement.Preview/Automation Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -167,8 +167,8 @@ function Get-InvokeMethodCmdletCode
167
167
168
168
# 2. Iterate through Param List
169
169
$methodParamList = $MethodInfo.GetParameters ();
170
- $paramNameList = @ ();
171
- $paramLocalNameList = @ ();
170
+ [ System.Collections.ArrayList ] $paramNameList = @ ();
171
+ [ System.Collections.ArrayList ] $paramLocalNameList = @ ();
172
172
[System.Collections.ArrayList ]$pruned_params = @ ();
173
173
foreach ($methodParam in $methodParamList )
174
174
{
@@ -195,7 +195,7 @@ function Get-InvokeMethodCmdletCode
195
195
}
196
196
}
197
197
198
- $invoke_params_join_str = [string ]::Join(' , ' , $paramLocalNameList );
198
+ $invoke_params_join_str = [string ]::Join(' , ' , $paramLocalNameList.ToArray () );
199
199
200
200
# 2.1 Dynamic Parameter Assignment
201
201
$dynamic_param_assignment_code_lines = @ ();
You can’t perform that action at this time.
0 commit comments