I have C# constructor
class A {
public A (name="",version=""){
//do something
}
}
The corresponding DLL is imported in Powershell.
I want to create the A object by passing named parameters.
$a = New-Object ABC.XYZ.A -ArgumentList @() //pass named params
I couldn't find the doc/example to create object with constructor which takes optional named parameters [there are around 20 params].