RosettaCodeData/Task/Add-a-variable-to-a-class-instance-at-runtime/PowerShell/add-a-variable-to-a-class-instance-at-runtime.psh

6 lines
156 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
$x = 42 `
| Add-Member -PassThru `
NoteProperty `
Title `
"The answer to the question about life, the universe and everything"