First pieces of code in PowerShell
new-object:
get-member:
For some reason, this method of invoking object methods is reminiscent of both Ruby and Smalltalk for me.
$sw = new-object System.IO.StreamWriter("c:\ts.txt")
get-member:
$sw | get-member -memberType methods
For some reason, this method of invoking object methods is reminiscent of both Ruby and Smalltalk for me.
Labels: powershell

0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home