I’ve been searching, but not finding a solution that’s working
$Props01 = [ordered]@{ 'Prop01A' = 'Prop01A_Value' 'Prop01B' = 'Prop01B_Value' } #end $Props01 $Obj01 = New-Object -TypeName PSObject -Property $Props01 $Props02 = [ordered]@{ 'Prop02A' = 'Prop02A_Value' } #end $Props02 $Obj02 = New-Object -TypeName PSObject -Property $Props02
Obj01 contains:
Prop01A
Prop01B
Obj02 contains
Prop02A
I’d like to be able to make Obj03 which contains:
Prop01A
Prop01B
Prop02A
I know I can mix/match and place all three in a single hashtable, but I’m looking at having dozens of these custom objects “groups” and want to be able to pick and choose which Obj0x gets merged with Obj0y.
$Props03 = [ordered]@{
'Prop01A' = 'Prop01A_Value'
'Prop01B' = 'Prop01B_Value'
'Prop02A' = 'Prop02A_Value'
}
Thanks.