RosettaCodeData/Task/Add-a-variable-to-a-class-instance-at-runtime/PowerShell/add-a-variable-to-a-class-instance-at-runtime.ps1
2026-04-30 12:34:36 -04:00

5 lines
156 B
PowerShell

$x = 42 `
| Add-Member -PassThru `
NoteProperty `
Title `
"The answer to the question about life, the universe and everything"