5 ms·
I only wish it was easier to put c# code within a powershell script. Would be a great mix of two worlds.
by adzm 4y ago
I only wish it was easier to put c# code within a powershell script. Would be a great mix of two worlds.
- auxym 4y agoIt's actually pretty easy to "import" a C# class, either from a string or from a separate .cs file, with `Add-Type`, you don't even need to compile it first. See: https://stackoverflow.com/a/24881346 https://stackoverflow.com/a/24881346