I wrote a generic function to call a stored procedure. I tried to use a multidimensional array to pass the parameters. Now it is possible, that the procedure only takes one parameter, so my multidimensional array has also only one parameter. But the length of such an array is 2!
$MyParameters = ("param1_name", "param1_value")
$MyParameters.Length
returns 2!! Strange, why? It should return 1
$MyParameters
returns correctly:
param1_name
param1_value
If I write:
$MyParameters = ("param1_name", "param1_value"), ("param2_name", "param2_value")
$MyParameters.Length
returns also 2 which is correct. $MyParameters
returns correctly all four elements:
param1_name
param1_value
param2_name
param2_value
Any reasons for that? Am I missing something?