Call GH function in C#?

You can use the Rhino.NodeInCode namespace: