C
C#12mo ago
engineertdog

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.
No description
1 Reply
engineertdog
engineertdogOP12mo ago
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.
Want results from more Discord servers?
Add your server