I came across this post from 2015:
I am wondering if there are any updates or easier ways to use ghpythonlib or rhinoScriptSyntax in C# now?
You can use the Rhino.NodeInCode namespace:
Rhino.NodeInCode