I have c# code and i want to find alternative of this code in PowerShell . I found something like [ref]$parameter
but it's doesn't work .
My code is :
private static bool testfunction(string param1, out string param 2)
{
param1 = "";
param2 += "Hello";
return true;
}
Please give me alternative code in PowerShell.
i try this :
class tst
{
static test([ref]$param)
{
$param.Value = "world "
}
}
$test = "ddd"
$test
[tst]::test($test)
$test
this is doesn't work.