Get output of PowerShell into IList<class>
I'd like to avoid writing to and then reading from a file to perform this as that adds extra overhead. I have the following code in .NET 4.8, but I'm missing something on trying to convert the output to a readable IList.
1 Reply
The problem is that it's not converting correctly, although I can get the proper JSON via PS direct
Nevermind, you have to apparently cast the deserialized object to list, rather than pass it as the type param to the method.