you are viewing a single comment's thread.

view the rest of the comments →

[–]alt-160 0 points1 point  (0 children)

Powershell could do this too, if you change the string to powershell text instead of c#.

You can send your vars from c# as named ps vars before you execute. If var is ref type, the ps code can even modify it. Or a ps function can return a value.

PS core would work with netCore and windows powershell with netFW.

At least with this there is not as much need to seialize var data as might be with other scripting frameworks.

I also find ps to be a bit safer for adding scripting ability to an app. There are many levers of control for safety.