How to convert C# code to a PowerShell Script?

前端 未结 4 512
滥情空心
滥情空心 2020-12-13 00:43

I regularly have to convert an existing C# code snippet/.CS file to a PowerShell script. How could I automate this process?

While I am aware that there are methods

4条回答
  •  孤城傲影
    2020-12-13 01:24

    There is a Reflector add-in for PowerShell that will allow you to see the corresponding PowerShell script for static methods on classes

    There's a good post with the example: http://blogs.msmvps.com/paulomorgado/2009/09/17/powershell-for-the-net-developer/.

提交回复
热议问题