Call an arcpy script from C# code?

Discussion created by VBAHole on May 29, 2013
Latest reply on May 30, 2013 by VBAHole
Does anyone know if it is possible to call a python script that uses the arcpy library directly from C#?
I don't want to publish a gp service because it is a royal pain in the you know what.
I just have a py script that does some geoprocessing and i want to call that from my C# code.

I can call other py scripts from C# using a shell command. But what about complex input types like Feature Set? How would i represent those as parameters to the py call?