Monday, September 01, 2008

First pieces of code in PowerShell

new-object:
$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:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home