Translating between Powershell, C#, and Python  
Thursday, July 5, 2012 at 10:33AM
saveenr

I do love using Powershell but because I have so much more experience with C# and Python switching back and forth can be challenging for me. I always forget some basic thing in powershell like the exactt syntax to create a list.

To help myself I created this Powershell / C# / Python Translation Guide. It allows you to see how simple task like “testing if a file exist” is performed across three different languages.

One Warning: I am still struggling with Microsoft Word's compulsion to change straight quotes to curly, smart quotes, so keep that in many when copy/pasting the C# or IronPython code.

(Click on the image below to go to the guide)

Snap050

 

 

Article originally appeared on viziblr (http://viziblr.com/).
See website for complete article licensing information.