dnnru / code-conversion

Code conversion cmdlets for PowerShell and C#

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PowerShell to C# Code Conversion

Orginally a feature of PowerShell Pro Tools, this module provides the ability to convert between C# and PowerShell. No license required.

Installation

Install-Module CodeConversion

Usage

Convert from C# to PowerShell

ConvertTo-PowerShell -Code 'System.Diagnostics.Process.GetProcesses()'
# Outputs: Get-Process

Convert from PowerShell to C#

ConvertTo-CSharp -Code 'Get-Process'
# Outputs: System.Diagnostics.Process.GetProcesses()

About

Code conversion cmdlets for PowerShell and C#

License:Apache License 2.0


Languages

Language:C# 90.0%Language:PowerShell 10.0%Language:Smalltalk 0.0%